使用来自IBM Websphere Application Server 8的javamail api发送邮件

时间:2015-08-21 13:43:29

标签: spring-mvc javamail websphere-8

如何使用javamail 1.5.2 api从IBM Websphere Application Server 8使用gmail发送邮件,因为这给我一个同样的错误:

Caused by: java.security.cert.CertPathValidatorException: The certificate issued by OU=Equifax Secure Certificate Authority, O=Equifax, C=US is not trusted; internal cause is: java.security.cert.CertPathValidatorException: Certificate chaining error

1 个答案:

答案 0 :(得分:1)

您需要将Google证书导入WebSphere的信任库。

WebSphere不信任证书。您正在尝试向使用SSL的服务器发送电子邮件。

最简单的方法是使用从端口检索

您可以在此处找到信息:http://www-01.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.express.doc/ae/usec_sslretrievesignercert.html

您是否使用了正确的值进行检索?

  • 主持人:smtp.gmail.com

  • 港口:465

  • Alias:gmail