Tomcat配置SSL证书一直启动失败,主要问题如下:
java.io.IOException: Alias name tomcat does not identify a key entry
at org.apache.tomcat.util.net.jsse.JSSEUtil.getKeyManagers(JSSEUtil.java:280)
别名tomcat无法识别密钥项,是因为Tomcat配置没有设置别名,该别名默认是域名或者alias,如果没有别名的,可以让Gworg重新签发SSL证书。
certificateKeyAlias="alias"
certificateKeyAlias="www.gworg.com"
配置参考如下
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true"> <SSLHostConfig> <Certificate certificateKeystoreFile="conf/www.gworg.com.jks" certificateKeystorePassword="123456" certificateKeyAlias="www.gworg.com" type="RSA" /> </SSLHostConfig> </Connector>
原创发表:Tomcat配置SSL证书别名tomcat无法识别密钥项_SSL文档_Gworg