【问题标题】:Certificate chaining error : PKIX path validation failed证书链接错误:PKIX 路径验证失败
【发布时间】:2016-01-15 21:14:35
【问题描述】:

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

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)

【问题讨论】:

  • 请编辑问题以包含一些代码和/或错误发生时您尝试执行的操作的说明。

标签: ssl smtp websphere ssl-certificate jakarta-mail


【解决方案1】:

可能您的 smtp 服务器正在使用链式证书,而您只导入了链式证书中的最后一个。您必须将路径中的所有证书作为签名者添加到信任存储。检查这篇文章Certificate chaining error in Websphere,它提供了一些额外的信息如何将证书添加到信任库。

【讨论】:

    【解决方案2】:

    非常一般的错误,可能信任存储中缺少某些证书(java.security.cert.CertPathValidatorException:证书链接错误)。

    请提供有关您正在做什么的更多信息。

    【讨论】:

      猜你喜欢
      • 2017-01-11
      • 1970-01-01
      • 2022-01-12
      • 2019-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-12
      相关资源
      最近更新 更多