Tomcat8.5/Tomcat9版本SSL证书部署方法
发布日期:2016-08-221、准备好JKS格式的证书,(可在沃通CA申请)
2、 配置conf/server.xml文件
配置前:
<!--
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true">
<SSLHostConfig>
<Certificate certificateKeystoreFile="conf/localhost-rsa.jks"
type="RSA" />
</SSLHostConfig>
</Connector>
-->
配置后:
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true">
<SSLHostConfig>
<Certificate certificateKeystoreFile="F:\Tomcat 8.0\conf\ims.cn1.jks"
certificateKeyAlias="1"
certificateKeystorePassword="密码"
type="RSA" />
</SSLHostConfig>
</Connector>
注:
certificateKeystorePassword为jks密码;
certificateKeyAlias为jks别名,没有特殊情况的别名就是1。
相关阅读: