We are enabling 2-way SSL and using ECDSA certificates. Our application uses SSLServerSocket which is enabled for 2 -way SSL. sslSocket.setNeedClientAuth(true);
I see TLS handshake failing everytime at ***READ ClientKeyExchange ECDH ( I tested using openssl s_client -connect .. ) ***SEND Alert Fatal, Unexpected Message ***ENCRYPT: Plaintext (2): [ 0000: 02 0a [.. ] ] ***ENCRYPT: Ciphertext (2): [ 0000: 02 0a [.. ] ]
The above is obtained after enabling -Djavax.net.debug=all Cipher suite agreed is TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
Any leads on what could be the issue here?
Alert Fatal, Unexpected Message is very generic. Can we get a detailed message than this? The java security provider used is security.provider.1=com.rsa.jsafe.provider.JsafeJCE
Thanks