close

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/

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 汪汪 的頭像
    汪汪

    只有一個人的世界

    汪汪 發表在 痞客邦 留言(0) 人氣()