首页 > 其他分享 >如何正确配置Tomcat SSLHostConfig?

如何正确配置Tomcat SSLHostConfig?

时间:2022-11-30 14:11:57浏览次数:40  
标签:TLSv1.2 正确 Tomcat SSLHostConfig 配置 protocols

<Connector port="443"
           protocol="org.apache.coyote.http11.Http11NioProtocol"
           maxThreads="100"
           compression="on"
           scheme="https"
           SSLEnabled="true"
           secure="true"
           defaultSSLHostConfigName="test.test">
    <SSLHostConfig hostName="test.test"
                   protocols="TLSv1.2">
        <Certificate certificateFile="conf/cert.pem"
                     certificateKeyFile="conf/privkey.pem"
                     certificateChainFile="conf/chain.pem" />
    </SSLHostConfig>
</Connector>

 

    <Connector executor="tomcatThreadPool" 
               port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
               connectionTimeout="30000"
               keepAliveTimeout="60000"
               maxKeepAliveRequests="150"
               URIEncoding="UTF-8"
               disableUploadTimeout="true"
               enableLookups="false"
               maxHttpHeaderSize="102400"
               maxPostSize="4194304"
               acceptorThreadCount="16"
               acceptCount="500"
               compression="on"
               compressionMinSize="2048"
               useSendfile="false"
               noCompressionUserAgents="gozilla,traviata"
               compressibleMimeType="text/html,text/xml,text/javascript,text/css,text/plain"
               SSLEnabled="true">
        <SSLHostConfig>
            protocols="TLSv1.2"
            <Certificate certificateKeystoreFile="ssl/123.jks"
                         certificateKeystorePassword="123456"
                         type="RSA" />
        </SSLHostConfig>
    </Connector>

 

标签:TLSv1.2,正确,Tomcat,SSLHostConfig,配置,protocols
From: https://www.cnblogs.com/wxwgk/p/16938242.html

相关文章