javax.net.ssl.SSLHandshakeException: unable to find valid certification path to requested target

Error: 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

Cause: The certificate not in trusted list of JVM.

Solution: Add the certificate to trusted list by compiling and running the following Java class from the download link below (modified from the one posted at http://code.naishe.in/2011/07/looks-like-article-no-more-unable-to.html). Note: The certificate file(path) may have to be edited and set to the file used by your JVM to look up certificates.

Download InstallCert.java

Kj
Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.

Leave a Comment

Your email address will not be published. Required fields are marked *