tomcat支持多个ssl证书设置

conf/server.xml添加:

<Connector port="443" protocol="org.apache.coyote.http11.Http11Nio2Protocol" defaultSSLHostConfigName="ssl.****.cn"
               maxThreads="350" SSLEnabled="true" >
        <SSLHostConfig hostName="ssl.****.cn">
            <Certificate certificateKeystoreFile="D:/Env/Tomcat85/https/domain1.jks" certificateKeystorePassword="v*****m" type="RSA" />
        </SSLHostConfig>
          <SSLHostConfig hostName="ssl.****.com">
              <Certificate certificateKeystoreFile="D:/Env/Tomcat85/https/domain2.jks" certificateKeystorePassword="2*****a" type="RSA" />
          </SSLHostConfig>
</Connector>

SSLHostConfig可以添加多个,就是多个ssl证书。tomcat8.5以上支持。

posted @ 2023-02-21 12:27  锐洋智能  阅读(204)  评论(0编辑  收藏  举报