【发布时间】:2019-12-06 21:21:55
【问题描述】:
sun.security.validator.ValidatorException:PKIX 路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException:无法 找到请求目标的有效认证路径;嵌套异常是 javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:PKIX 路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException:无法 找到请求目标的有效认证路径
在触发 SSL 认证 URL 时收到以下异常。 尝试使用以下命令修复错误
/opt/jdk1.8.0_51/jre/bin/keytool -import –alias -genkey –keystore “/opt/jdk1.8.0_51/jre/lib/security/cacerts” -file /apps/binlistlookup/src/main/resources/binlistnet.crt
centos 7 系统中仍然存在问题。
【问题讨论】:
-
确认您放入的证书是相同的JDK,会产生错误,确认证书格式,证书是ROOT证书以确保可靠性。有关过程中的帮助,请参阅this 帖子。