简体   繁体   中英

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. I have also added SSL certificate to the java keystore. 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')

I could not runt it because of an error Error grabbing Grapes -- [unresolved dependency: org.apache.commons#commons-collections4;4.2: not found]

Using -Divy.message.logger.level=4 I saw I was having the following problem:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM