我正在Tomcat服务器上安装SSL证书,但是无法在密钥库文件中find密钥条目。
如果我不指定keyAlias="mykey"它会显示以下错误消息:
javax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled.
正如我在Tomcat文档http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html#Troubleshooting上看到的,它告诉我指定keyAlias 。
但是,当我这样做时,我收到以下错误信息:
java.io.IOException: Alias name mykey does not identify a key entry
如果我keytool -list -keystore .keystore -v ,我会得到三个关键条目,其中两个来自cert公司和最后一个:
Alias name: mykey Creation date: Dec 17, 2011 Entry type: trustedCertEntry
也就是说,键入是在那里,但Tomcat找不到它。 将keystoreFile更正设置为密钥库文件。
它可能是什么?