首页 > TAG信息列表 > ValidatorException

HTTPS请求不被信用

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetjavax.net.ssl.SSLHandshakeException: sun.security.validator.Valida

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

⒈添加对应的ssl证书   浏览器访问自己的地址:https://maven.aliyun.com/nexus/content/groups/public/           导出证书文件到D盘,起个名字  aliyun,然后以管理员运行cmd,切换到jre的/lib/security/下,进行导入 cd C:\Program Files\Java\jre1.8.0_241\lib\securit

HtmlUnit ValidatorException: PKIX path building failed:

[09:17:36:713] [ERROR] - com.xx.sea.util.HtmlUnitUtil.httpGetResponse(HtmlUnitUtil.java:95) - htmlunit err javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPat