简体   繁体   English

如何解决sun.security.provider.certpath.SunCertPathBuilderException?

[英]How to solve sun.security.provider.certpath.SunCertPathBuilderException?

I have written some code to connect to my mail server and read emails. 我写了一些代码来连接到我的邮件服务器并阅读电子邮件。 I am using POP3 using SSL connection. 我使用SSL连接使用POP3。 I have also added SSL certificate to the java keystore. 我还在java密钥库中添加了SSL证书。 But still i am getting the same exception. 但我仍然得到同样的例外。 Please help. 请帮忙。 Thanks in advance. 提前致谢。

Possible cause this exception would be the cert from the keystore does not match the cert from the server. 可能的原因是此异常将是密钥库中的证书与服务器的证书不匹配。

Checkout these link might be helpful to you: 结帐这些链接可能对您有所帮助:

我得到了同样的错误,我禁用了在我的防病毒软件的设置中始终扫描加密的连接 ,它工作。

I have groovy script, and I was using @Grab(group='org.apache.commons', module='commons-collections4', version='4.2') 我有groovy脚本,我正在使用@Grab(group='org.apache.commons', module='commons-collections4', version='4.2')

I could not runt it because of an error Error grabbing Grapes -- [unresolved dependency: org.apache.commons#commons-collections4;4.2: not found] 由于错误错误抓住Grapes,我无法忍受它- [未解决的依赖:org.apache.commons#commons-collections4; 4.2:not found]

Using -Divy.message.logger.level=4 I saw I was having the following problem: 使用-Divy.message.logger.level=4我看到我遇到以下问题:

Server access error at url https://repo1.maven.org/maven2/org/apache/commons/commons-collections4/4.2/commons-collections4-4.2.pom (javax.net.ssl.SSLException: Received fatal alert: protocol_version)

My qick fix was to use JDK8 instead of JDK7 it seems that JDK8 has updated certificates and it worked 我的qick修复是使用JDK8而不是JDK7似乎JDK8已经更新了证书并且它有效

暂无
暂无

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

相关问题 REST客户端抛出sun.security.provider.certpath.SunCertPathBuilderException - REST Client throws sun.security.provider.certpath.SunCertPathBuilderException PKIX路径构建失败sun.security.provider.certpath.SunCertPathBuilderException - PKIX path building failed sun.security.provider.certpath.SunCertPathBuilderException org.testng.TestNGException:sun.security.provider.certpath.SunCertPathBuilderException - org.testng.TestNGException: sun.security.provider.certpath.SunCertPathBuilderException JDK 10模块和sun.security.provider.certpath.SunCertPathBuilderException - JDK 10 modules and sun.security.provider.certpath.SunCertPathBuilderException 如何忽略 PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException? - How to ignore 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 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 更新 pom xml 时 - PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException - while updating pom xml - PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM