1、cmd模式运行,键入“keytool -genkey -alias tomcat -keyalg RSA -keystore c:/.keystore”,密码假设为123456
2、你的名称和姓氏 输入网站名:如localhost。其他的可以跳过,保存输入y
3、修改server.xml
将.keystore剪切到conf目下,添加
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="conf/.keystore" keystorePass="123456"/>
3. 重启tomcat,使用端口8443访问即可。
http://zhidao.baidu.com/question/184633718.html
http://zhidao.baidu.com/question/133513048.html