I have a JAXWS client where I have configured the two properties for mutual authentication:
System.setProperty("javax.net.ssl.keyStore","sample.jks");
System.setProperty("javax.net.ssl.keyStorePassword","xxxx");
System.setProperty("javax.net.debug", "all");
From the logs, I see the following error at the end:
main, READ: TLSv1 Alert, length = 2
main, RECV TLSv1 ALERT: fatal, handshake_failure
%% Invalidated: [Session-1, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA]
main, called closeSocket()
main, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
I am not able to figure out the reason for this error.
Any help would be greatly appreciated.