我正在使用 cfpop
标签,并将 secure
属性设置为 yes,从 gmail 检索电子邮件,它在本地主机上工作,但在我的托管服务器上不起作用。即使使用 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
谁能解释一下为什么我会收到此错误以及此错误消息是什么?
最佳答案
该错误让我认为他们的 Java keystore 中可能没有证书或中间证书。查看这篇文章:
http://www.coldfusionmuse.com/index.cfm/2005/1/29/keystore
要修复它,您必须“导入”证书。进入 keystore 。欢迎来到 Java 和 SSL 的世界:)
关于在 Coldfusion 10 中使用 cfpop 时出现 java.security.spec.ECPublicKeySpec 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18419440/