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