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

802524Oct 2 2010 — edited Oct 5 2010
Greetings,

I'm stuck, with this problem... here it's:

I'm trying to connect with a server with a self signed certificate,I'm getting this Exception:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I've dowloaded the certifcate with the class java InstallCert, but I got a 403 forbidden error.

Moreover, I also recived a .cer certificate form the systems administrator in the remote server, and I've added in my keystore with the keytool -import ....
I checked thec correct import of this file with: keytool -list -keystore jssecacerts -alias mykey -v and everything is ok.

I still got the previous error:javax.net.ssl.SSLHandshakeException.

Thanks in advance for your help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2010
Added on Oct 2 2010
8 comments
12,129 views