1、Modify conf/server.xml
a. remove mark of SSL
b. Replace protocol="HTTP/1.1" to protocol="org.apache.coyote.http11.Http11Protocol"
<Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="C:/Users/Dante/.keystore" keystorePass="qwe123"
clientAuth="false" sslProtocol="TLS" />
Note: By Tomcat Default, SSL configuration port is 8443, https default is 443
2、Generate Keystore
a. in jre/bin Enter: keytool -genkey -alias tomcat -keyalg RSA
b.
Note: keystore password MUST same as Tomcat Administrator password
Reference:
http://www.wretch.cc/blog/jerry0822/16157972
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
http://wmljava.iteye.com/blog/1218722
Q&A: Cannot Recover Key
keystore 的密碼必須跟 tomcat 的密碼一致
Tomcat admin 密碼預設為「changeit」
變更 Tomcat admin 密碼可參考官方文獻
http://www.mkyong.com/tomcat/tomcat-default-administrator-password/
留言列表