1、利用keytool工具生成.keystore文件,并且放置tomcat目录
2、配置server.xml文件
<Connector SSLEnabled="true" clientAuth="false" keystoreFile="conf/server.keystore" keystorePass="123456" keystoreType="PKCS12" maxThreads="150" port="443" protocol="HTTP/1.1" scheme="https" secure="true" sslProtocol="TLS" truststoreFile="conf/server.truststore" truststorePass="123456" truststoreType="PKCS12"/>