Tomcat配置SSL证书别名tomcat无法识别密钥项
发布日期:2022-10-21Tomcat配置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,如果没有别名的,可以让wotrus重新签发SSL证书。
certificateKeyAlias="alias"
certificateKeyAlias="www.wosign.com"
配置参考如下:
<Connectorport="8443"protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150"SSLEnabled="true">
<SSLHostConfig>
<CertificatecertificateKeystoreFile="conf/www.wosign.com.jks"
certificateKeystorePassword="123456"
certificateKeyAlias="www.wosign.com"
type="RSA"/>
</SSLHostConfig>
</Connector>