Nimbus jose JWKSet.load failes with error PKIX path building failed
Issue #470
resolved
trying to load keys from "https://inferno.healthit.gov/suites/custom/g10_certification/.well-known/jwks.json" fails with below 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
The same url works fine in the browser but fails from code. Could you please look into the issue.
Thanks
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Check if the root certificate is present in your JRE trust store. Browsers and Java can come with different root CA certs.