REST communication with the SSL server failed and an error message was displayed.
com.sun.jersey.api.client.ClientHandlerException: 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`
If you make an SSL connection with title = java, PKI PATH construction will fail It seems that the other host should be registered in the trusted list. InstallCert.java was broken, so I searched for it on github. InstallCert Add SSL certificate to Java Just use keytool to add the certificate to cacerts. The InstallCert README was the easiest to understand.
Recommended Posts