Nimbus jose JWKSet.load failes with error PKIX path building failed

Issue #470 resolved
Former user created an issue

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)

  1. Vladimir Dzhuvinov

    Check if the root certificate is present in your JRE trust store. Browsers and Java can come with different root CA certs.

  2. Log in to comment