我使用cfpop
标记,secure
属性设置为yes,从gmail检索电子邮件,它在localhost上工作但不在我的托管服务器上工作。甚至使用java.lang.System启用SSL也无法正常工作。我收到如下嵌套错误消息:
> This exception was caused by: javax.mail.MessagingException: Connect failed; nested exception is: javax.net.ssl.SSLException: Server key.
> Connect failed
> Server key
> Unknown KeySpec type: java.security.spec.ECPublicKeySpec
任何人都可以解释为什么我收到此错误以及这个错误消息是什么?
答案 0 :(得分:1)
错误让我觉得他们的Java密钥库中可能没有Cert或中间证书。看看这篇文章:
http://www.coldfusionmuse.com/index.cfm/2005/1/29/keystore
要修复它,您必须“导入”证书。进入密钥库。欢迎来到Java和SSL世界:)