J2SE SSLHandshakeException Fix
A friend of mine asked me for some help the other day with a error there were getting when trying to do a SSL webservice connection inside of JDeveloper. The exception message that was being throw, was :
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
This seems to be a common issue where for some reason the SSL Certificate is not able to be added to the JVM Certificate. To fix this issue we ran the code and followed the instructions in this tutorial and now everything started working great.
I found compiling the code, creating the new certificate file, and moving the new certificate file jssecert to the $JAVA_HOME/jre/lib/security solved all my problems. I found this very easy to preform and seems to be a great quick fix.



