简体   繁体   English

javax.net.ssl.SSLHandshakeException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:

[英]javax.net.ssl.SSLHandshakeException:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

My spring boot application communicate to a remote https url and it gives the above mentioned error while hitting a POST request.我的 spring 启动应用程序与远程 https url 通信,它在遇到 POST 请求时会出现上述错误。 I went through multiple stackoverflow posts for the same topic.我浏览了同一主题的多个 stackoverflow 帖子。 Installed/imported required certificates using keytool and restarted JVM.使用 keytool 安装/导入所需的证书并重新启动 JVM。 But that didn't resolve my issue.但这并没有解决我的问题。 The error message is the same, however the root cause is different here apart from importing certs.错误消息是相同的,但是除了导入证书之外,根本原因在这里是不同的。 Just wanted to post this as new question since I have been trying for last couple of days without any luck what so ever只是想将此作为新问题发布,因为过去几天我一直在尝试,但没有任何运气

This is not a spring boot related issue.这不是spring boot相关问题。 I figured out the issue was with JDK.我发现问题出在JDK上。 Default Oracle version installed in the system added wrong JRE path to environment variable.系统中安装的默认 Oracle 版本向环境变量添加了错误的 JRE 路径。 I have pointed it to correct JDK version and imported certs there.我已经指出它纠正了 JDK 版本并在那里导入了证书。 That resolved the issue.这解决了这个问题。 Thank you @Jens for the helpful input.感谢@Jens 提供的有用意见。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PKIX路径构建失败sun.security.provider.certpath.SunCertPathBuilderException - PKIX path building failed sun.security.provider.certpath.SunCertPathBuilderException SSLHandshakeException:ValidatorException:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException: - SSLHandshakeException: ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException - sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException - sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException 更新 pom xml 时 - PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException - while updating pom xml - PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException PKIX 构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效证书路径 - PKIX building failed:sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 如何忽略 PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException? - How to ignore PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException? mvn clean:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException - mvn clean: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException WebScarab:获取PKIX路径构建失败:通过https连接时,sun.security.provider.certpath.SunCertPathBuilderException - WebScarab : Getting a PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException while connecting via https AEM 6.5 PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException - AEM 6.5 PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM