ssl - 证书链接错误 : PKIX path validation failed

标签 ssl smtp websphere ssl-certificate jakarta-mail

我经常遇到异常。请告知该怎么做..

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)

最佳答案

非常普遍的错误,可能是信任库中缺少某些证书(java.security.cert.CertPathValidatorException:证书链接错误)。

请包含有关您正在做的事情的更多信息。

关于ssl - 证书链接错误 : PKIX path validation failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33181974/

相关文章:

http - 阻止HTTP并允许HTTPS访问

java - 如何忽略javamail中的服务器证书错误

c# - 访问 HTTPS Web 服务器时抛出 HttpWebRequest System.Net.WebException

PHPMailer 仅在 SMTPDebug = true 时发送电子邮件

java - "right"放置 WAR 依赖项的位置在哪里?

java - 签名证书在本地不受信任

python - Django SMTP [Errno 111] 连接被拒绝

go - html 未在电子邮件 golang 中翻译

deployment - WebSphere Server不在运行状态:Jython WebSphere脚本?

java - 为什么类无法转换为它实现的接口(interface)?