[英]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.