tomcat8.5配置多域名多證書(shū)
tomcat8.5配置多域名多證書(shū)
直接看代碼:

<Connector port="443" protocol="org.apache.coyote.http11.Http11Nio2Protocol" defaultSSLHostConfigName="域名1"
maxThreads="150" SSLEnabled="true" >
<SSLHostConfig hostName="域名1">
<Certificate certificateKeystoreFile="域名1的jks證書(shū)路徑/xxx.jks"
certificateKeystorePassword="域名1的證書(shū)密碼" type="RSA" />
</SSLHostConfig>
<SSLHostConfig hostName="域名2">
<Certificate certificateKeystoreFile="域名2的jks證書(shū)路徑/xxx.jks"
certificateKeystorePassword="域名1的證書(shū)密碼" type="RSA" />
</SSLHostConfig>
</Connector>
想要再添加域名及證書(shū)的話把<SSLHostConfig>里面的復(fù)制一份,修改關(guān)鍵信息就可以了。
會(huì)員登錄
賬號(hào)登錄還沒(méi)有賬號(hào)?立即注冊(cè)