咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
tomcat8.5配置多域名多证书
直接看代码:
<Connector port="443" protocol="org.apache.coyote.http11.Http11Nio2Protocol" defaultSSLHostConfigName="域名1"
maxThreads="150" SSLEnabled="true" >
<SSLHostConfig hostName="域名1">
<Certificate certificateKeystoreFile="域名1的jks证书路径/xxx.jks"
certificateKeystorePassword="域名1的证书密码" type="RSA" />
</SSLHostConfig>
<SSLHostConfig hostName="域名2">
<Certificate certificateKeystoreFile="域名2的jks证书路径/xxx.jks"
certificateKeystorePassword="域名1的证书密码" type="RSA" />
</SSLHostConfig>
</Connector>
想要再添加域名及证书的话把<SSLHostConfig>里面的复制一份,修改关键信息就可以了。