Overview
Features
Download
Documentation
Community
Add-Ons & Services

SSL sockets

A general discussion forum.
thready
Posts: 39
Joined: 20 Jan 2010, 17:20

Re: SSL sockets

Postby thready » 04 Feb 2010, 22:15

ok - getting further, now I've specified a certificate and key file in my configuration.properties file. The server looks like it's running now... COOL!

flomll
Posts: 28
Joined: 18 May 2012, 08:58
Location: Austria

Re: SSL sockets

Postby flomll » 05 Nov 2012, 11:03

Hy, what have you done to fix the certificate problem. I would like to modifie the EchoServer sample to use with SecureServerSocket instead of ServerSocket. The problem is, that I can not found a way to set the certificate path or something...

thready
Posts: 39
Joined: 20 Jan 2010, 17:20

Re: SSL sockets

Postby thready » 05 Nov 2012, 13:10

I'm sorry I can't remember and that code is gone. All I can say is try to find examples that use the "configuration.properties" file.. Good luck!

Royce
Posts: 19
Joined: 23 Feb 2012, 18:13

Re: SSL sockets

Postby Royce » 07 Nov 2012, 20:41

To my knowledge you must have a key. The key is integral to the encryption process.

This is how you create a self-signed key:

Code: Select all

openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem

Verification must be set to None for the key to pass muster.

I got that from here: http://www.madboa.com/geek/openssl/#cert-self

thready
Posts: 39
Joined: 20 Jan 2010, 17:20

Re: SSL sockets

Postby thready » 07 Nov 2012, 20:53

That's correct - and in your code- you need to specify which key to load... I remember now.. :) The sample should load a key already?

flomll
Posts: 28
Joined: 18 May 2012, 08:58
Location: Austria

Re: SSL sockets

Postby flomll » 08 Mar 2013, 09:24

thready wrote:I'm sorry I can't remember and that code is gone. All I can say is try to find examples that use the "configuration.properties" file.. Good luck!

I take a look at the HTTPS Server sample and now it runs perferct. :D


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest