PKIX path building failed: SunCertPathBuilderException: unable to find valid certification path to requested target. SSLHandshakeException: PKIX: unable to find valid certification path to requested target 解决方法
1. get the certificate and save


2. import it to your java keystore
<JAVA_HOME>/bin/keytool -importcert -file [PATH_TO_CERTIFICATE] -keystore [PATH_TO_KEYSTORE_JKS] -alias "example cert"
[PATH_TO_CERTIFICATE] -> C:\example\example.cer
[PATH_TO_KEYSTORE_JKS] -> C:\example\java\jdk1.8.0_152\jre\lib\security\cacerts
input password : changeit
confirm password: changeit