Overview
Features
Download
Documentation
Community
Add-Ons & Services

SSL and TCPServer?

Please post support and help requests here.

SSL and TCPServer?

Postby teh » 24 Sep 2008, 01:29

Is it possible to use TCPServer with a SecureServerSocket? I have a simple prototype server that works fine with ServerSocket, but substituting SecureServerSocket seems to prevent a connection from being made. In the latter case, the connection factory's createConnection is never called.

Anyone have a suggestion or an examples? I'd be so happy if you did...

btw, I have a properties file that has

openSSL.client.verificationMode = none

openSSL.client.verificationDepth = 0

openSSL.server.verificationMode = none

openSSL.server.verificationDepth = 9

teh
 
Posts: 3
Joined: 17 Jul 2008, 21:30

Re: SSL and TCPServer?

Postby peter » 24 Sep 2008, 13:00

^> Is it possible to use TCPServer with a SecureServerSocket? I have a simple prototype server that works fine with ServerSocket, but substituting SecureServerSocket seems to prevent a connection from being made. In the latter case, the connection factory's createConnection is never called.
>
> Anyone have a suggestion or an examples? I'd be so happy if you did...
>
> btw, I have a properties file that has
>
> openSSL.client.verificationMode = none
>
> openSSL.client.verificationDepth = 0
>
> openSSL.server.verificationMode = none
>
> openSSL.server.verificationDepth = 9
>
>^
Check the NetSSL/HTTPSTimeServer sample. It is HTTPS but you can use the SSL setup code from there for TCP. You also must also configure the certificate to use by the TCPServer.

br

Peter
peter
 
Posts: 67
Joined: 11 Jul 2006, 16:26
Location: Austria


Return to Support

Who is online

Users browsing this forum: gregee123 and 3 guests