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!

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failur

837869Feb 8 2011 — edited Feb 17 2011
Hi, 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2011
Added on Feb 8 2011
5 comments
7,930 views