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

原创
2016/03/16 10:18
阅读数 528

配置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" />

展开阅读全文
打赏
1
1 收藏
分享
加载中
更多评论
打赏
0 评论
1 收藏
1
分享
返回顶部
顶部