一、tomcat开启HTTPS配置
1) 准备证书
使用jdk工具keytool生成一个ssl测试用证书, 一路按照提示操作输入即可
keytool参考:http://blog.163.com/pengfang@yeah/blog/static/623930532013416111012845/
- keytool -genkey -alias tomcat -keyalg RSA -keystore F:ssowms.keystore
keytool参考:http://blog.163.com/pengfang@yeah/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:ssowms.keystore"
- keystorePass="123456" />
二、部署默认App
启动tomcat,即可使用https访问.
直接使用 https://ip:port/访问
转自:http://blog.csdn.net/whucyl/article/details/51778786
微信小程序:http://blog.csdn.net/fu250/article/details/72621558