生成证书
地址:https://github.com/XK715/XK
keytool -genkey -alias tomcat -keyalg RSA -keystore /var/tomcat/apache-tomcat-7.0.55/conf/tomcat.keystore
修改配置:conf/server.xml
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" keystoreFile="/var/tomcat/apache-tomcat-7.0.55/conf/tomcat.keystore" keystorePass="root123" sslProtocol="TLS" />