Tomcat7默认配置启用SSL与APR+SSL

こ雲淡風輕ζ 提交于 2021-02-20 08:19:53

配置Tomcat7的SSL时需要注意两种情况:

一、默认配置,即BIO/NIO模式下启用SSL

<Connector port="8443" protocol="HTTP/1.1"
               maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
               keystorefile="${catalina.base}/conf/xx.jks"
               keystorepass="pwd"   clientAuth="false" sslProtocol="TLS" />

二、启用APR+SSL

<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
               maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
               SSLCertificateFile="${catalina.base}/conf/xxx.crt"
               SSLCertificateKeyFile="${catalina.base}/conf/xxx.key"
               clientAuth="false" sslProtocol="TLS" />

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!