apache-tomcat-7.0.6配置https证书cer和key


运到以下问题:
1  操作系统是64位,但是tomcat 是32 位的,下载最新64位的  tomcat-native  替换32位 tcnative-1.dll
否则tomcat启动会报:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
2 启用apr模式
   
className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
 port="8443" maxThreads="150" acceptCount="100"
              scheme="https" 
secure="true"
SSLEnabled="true"
sslProtocol="TLSv1+TLSv1.1+TLSv1.2"
clientAuth="false"
SSLCertificateFile="D:\Program Files\apache-tomcat-7.0.6-windows-x86\apache-tomcat-7.0.6\conf\server.cer"
SSLCertificateKeyFile="D:\Program Files\apache-tomcat-7.0.6-windows-x86\apache-tomcat-7.0.6\conf\server.key"
/>
bio模式,protocol=HTTP/1.1
nio模式,protocol=org.apache.coyote.http11.Http11AprProtocol
apr模式,不写
 

你可能感兴趣的:(Java)