Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SSLEngine closing prematurely on SSLHandshakeException?

843811Mar 7 2006 — edited Mar 8 2006
I have worked with the SSLEngine using non-blocked IO and it mostly works.

I do have a problem when a client connects and I get
 WorkerThread-1, fatal error: 40: no cipher suites in common
 javax.net.ssl.SSLHandshakeException: no cipher suites in common
 WorkerThread-1, SEND TLSv1 ALERT:  fatal, description = handshake_failure
 WorkerThread-1, WRITE: TLSv1 Alert, length = 2
in a delegate task. The handshake status is NEED_WRAP after this but when
I call wrapHandshake I get
WorkerThread-1, fatal: engine already closed.  Rethrowing javax.net.ssl.SSLHandshakeException: no cipher suites in common
which means I'm not able to send the error reply to the connected client.

Is this a bug in SSLEngine or simply a misunderstanding on my part on what's going on.

I'm thankful for any insight on this.

regards
/Magnus Hulth�n
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 5 2006
Added on Mar 7 2006
3 comments
442 views