简体   繁体   English

PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效认证路径

[英]PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I am trying to connect to a mail server and read my inbox. 我正在尝试连接到邮件服务器并阅读我的收件箱。 My code works for gmail but does not seem to work with my exchange server because of the error: 我的代码适用于gmail,但由于错误而似乎不适用于我的交换服务器:

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

I have tried the following as per my research: 1. downloaded the InstallCert.java and ran the folllowing command: 根据研究,我尝试了以下操作:1.下载InstallCert.java并运行以下命令:

java InstallCert mail.simbatech.biz:993

and imported the one certificate that came in, I afterwards copied the jssecacerts file to jre/lib/security directory of my java Installation but the same error still persists. 然后导入一个证书,然后将jssecacerts文件复制到Java安装的jre / lib / security目录中,但是相同的错误仍然存​​在。 Is there Any other way to do this? 还有其他方法吗?

It sounds like you're doing the right things, but apparently your application is not using the certificate file you created. 听起来您在做正确的事,但是显然您的应用程序没有使用您创建的证书文件。 Where is your application running? 您的应用程序在哪里运行? If it's running in an application server, the server may be overriding the trust store configuration and may thus be ignoring your jssecacerts file. 如果它在应用程序服务器中运行,则该服务器可能会覆盖信任存储库配置,因此可能会忽略您的jssecacerts文件。 Try enabling additional debug output as described in the JavaMail FAQ . 尝试按照JavaMail FAQ中的说明启用其他调试输出。

暂无
暂无

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

相关问题 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:无法找到到请求目标的有效认证路径? - PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target? CXF:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效证书路径 - CXF:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 无法找到到请求的目标PKIX路径构建的有效证书路径失败:sun.security.provider.certpath.SunCertPathBuilderException - unable to find valid certification path to requested target PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException GCP-PUBSUB:-sun.security.provider.certpath.SunCertPathBuilderException: 无法找到请求目标的有效认证路径 - GCP-PUBSUB:-sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求的目标错误的有效证书路径 - sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target error 引起:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效证书路径 - Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Java:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效认证路径 - Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 使用 xmpp 时出现错误“sun.security.provider.certpath.SunCertPathBuilderException:无法找到到所请求目标的有效证书路径” - Error ' sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target' when using xmpp PKIX路径构建失败sun.security.provider.certpath.SunCertPathBuilderException - PKIX path building failed sun.security.provider.certpath.SunCertPathBuilderException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM