一、tomcat开启HTTPS配置
1) 准备证书
使用jdk工具keytool生成一个ssl测试用证书, 一路按照提示操作输入即可
keytool参考:http://blog.163.com/[email protected]/blog/static/623930532013416111012845/
- keytool -genkey -alias tomcat -keyalg RSA -keystore F:\sso\wms.keystore
keytool参考:http://blog.163.com/[email protected]/blog/static/623930532013416111012845/
2)tomcat配置修改
修改conf下server.xml配置,打开https端口配置
- <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
- maxThreads="150" scheme="https" secure="true"
- clientAuth="false" sslProtocol="TLS"
- keystoreFile="F:\sso\wms.keystore"
- keystorePass="123456" />
二、部署默认App
启动tomcat,即可使用https访问.
直接使用 https://ip:port/访问
转自:http://blog.csdn.net/whucyl/article/details/51778786