【发布时间】:2012-10-01 16:36:53
【问题描述】:
我正在开发用于从我的域向 gmail.com 发送电子邮件的代码
我收到了SSLHandshakeException(见下文)。
这个怎么解决??
Exception in thread "main" javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
【问题讨论】:
-
你的服务器有防火墙设置吗?
-
在这个问题的答案中发表评论可能会有所帮助:stackoverflow.com/questions/12743846/…
标签: java security email sslhandshakeexception