javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failur
837869Feb 8 2011 — edited Feb 17 2011Hi, I have a requirement where I have to do following steps :
1.Connecting with LDAP server through SSL trust store.
So added following system properties :
System.setProperty("javax.net.ssl.trustStore",
"path to jdk cacerts");
System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
I am able to fetch the data correctly.
2. I have to connect to another SSL server through webservice(axis2),where I will push these data.
I am setting following system properties :
System.setProperty("javax.net.ssl.keyStore", certFilePath);
System.setProperty("javax.net.ssl.keyStorePassword", password);
Now this step not happening and throwing handshake error.
But If I execute only the 2nd steps(skipping ist step) with dummy data, I am able to push data correctly through web service.
Can any one please guide me how to work for this requirement,where I need to finish two SSL connection/requests in one go.
Thanks