Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provid
来源:互联网 发布:重装mac磁盘工具 编辑:程序博客网 时间:2024/05/29 18:39
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\cacertsinput password : changeitconfirm password: changeit
阅读全文