太难了,Tomcat7服务器设置Https协议的SSL证书,半天没搞定啊
切换,Tomcat8 分分钟
参考
https://blog.csdn.net/u014553029/article/details/86672342
https://blog.csdn.net/qq_37138756/article/details/103516627
https://blog.csdn.net/rookiepm/article/details/126391469
https://blog.csdn.net/hidescold/article/details/145171451
证书,是用的服务器网站的tomcat证书
也可以本身生成测试证书
keytool
参考
https://blog.csdn.net/qq_37138756/article/details/103516627
https://blog.csdn.net/rookiepm/article/details/126391469
设置证书,修改tomcat设置文件
- <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
- maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
- keystoreFile="/www/server/tomcat/TomcatSsl/dny.kwfs.jks" 证书路径
- keystorePass="fzWoYwJ4VBKuY4" 密码
- keystoreType="JKS"
- clientAuth="false" sslProtocol="TLS"
- sslEnabledProtocols="TLSv1.2,TLSv1.3"
- ciphers="TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" />
复制代码 设置,路径映射
- <Context docBase="/www/data2/huazhz.ylhd.com/public" path="/img" debug="0" reloadable="true" />
复制代码 就可以在浏览器访问了
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |