jessie-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jessie-discuss] Wrapping a Socket as SSLSocket (Was: Bug when closi


From: Martin Egholm Nielsen
Subject: Re: [Jessie-discuss] Wrapping a Socket as SSLSocket (Was: Bug when closing stream)
Date: Mon, 18 Jul 2005 13:25:48 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050319

Hi,

I configured my SSLContext as before, used an ordinary ServerSocket for accept(), and then wrapped that socket in a SSLSocket using the configured SSLContext for returning a SSLSocketFactory:

Socket s = ss.accept();
sslc.getSocketFactory().createSocket( s, "blah", 443, true );

Connecting to my server from Mozilla I now get an error:

SSL_ERROR_RX_UNEXPECTED_CLIENT_HELLO -12246 "SSL received an unexpected Client Hello handshake message."

So it looks like the SSLSocket thinks its a client... Is there a way to configure this?
Yes, 'SSLSocket.setUseClientMode(boolean)'.
Ohh - thanks! It works like a charm now...

// Martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]