tomcat配置ssl 加密
一,keytool -genkeypair -alias tomcat -keyalg RSA -keystore /usr/local/tomcat8/keystore
然后按提示输入
二, 修改server.xml 配置文件
查看:ls -l /usr/local/tomcat8
进入vim /usr/local/tomcat8/conf/server.xml
如图:
三,启动
/usr/local/tomcat8/bin/shutdown.sh
/usr/local/tomcat8/bin/startup.sh
查看日志tail -f /usr/local/tomcat8/logs/catalina.out