2015-10-17 731 views
-1

我經常遇到異常。在信任存儲區:(證書鏈錯誤java.security.cert.CertPathValidatorException)請指教該怎麼做..證書鏈接錯誤:PKIX路徑驗證失敗

javax.mail.MessagingException: Can't send command to SMTP host; 
    nested exception is: 
    javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: PKIX path validation failed: java.security.cert.CertPathValidatorException: Fail to verify issuer; internal cause is: 
    java.security.cert.CertPathValidatorException: Certificate chaining error 
    at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1564) 
    at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1551) 
    at com.sun.mail.smtp.SMTPTransport.ehlo(SMTPTransport.java:935) 
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:426) 
    at javax.mail.Service.connect(Service.java:288) 
    at javax.mail.Service.connect(Service.java:169) 
+0

請編輯問題以包含一些代碼和/或解釋發生錯誤時您要做的事情。 – m69

回答

0

非常普通的錯誤,可能還有一些證書丟失。

請包括更多關於你在做什麼的信息。

0

也許你的smtp服務器正在使用鏈接證書,並且你只導入鏈中的最後一個。您必須將作爲簽署者的路徑中的所有證書添加到信任庫中。檢查這個帖子Certificate chaining error in Websphere,它提供了一些額外的信息,如何將證書添加到信任庫。

相關問題