How to fix PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException Introduction In the last article, we were trying to enable communication over https between 2 applications using the self-signed certificate. Once the certificate was added and when we ran the application some users would have got the below error.
1 2 3 4 5 6 7 8 9 | org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://localhost:8100/customer/": sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is 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 |
In this article, we will focus on […]