SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed

1.下载网站证书:

SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed_第1张图片

SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed_第2张图片

SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed_第3张图片

执行命令:

keytool -import -alias 别名 -keystore "C:\Program Files\Java\jdk1.8.0_212\jre\lib\security\自定义" -file 证书路径

后面会叫你输入密码,随便输就行了

 

你可能感兴趣的:(随笔)