首页 新闻 赞助 找找看

本地 HTTP转HTTPS

0
悬赏园豆:50 [已关闭问题] 关闭于 2018-10-25 20:41

访问 localhost:8080/ssm-crud/home/sellhomepage
转成
https://localhost/ssm-crud/home/sellhomepage

并且
https://localhost:8843/ssm-crud/home/sellhomepage
同样不能访问
上面3个链接都不能访问

去掉

图片中的
<login-config>
<auth-method>CLIENT-CERT</auth-method>
<realm-name>Client Cert Users-only Area</realm-name>
</login-config>
<security-constraint>
<web-resource-collection>
<web-resource-name>SSL</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

就可以访问
localhost:8080/ssm-crud/home/sellhomepage

Javaweb 项目的 web.xml
添加了

tomcat 的 conf 中的 server.xml 添加了

<Connector port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" />


<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"  
 maxThreads="150" scheme="https" secure="true"  
 clientAuth="false" keystoreFile="E:/ssl/tomcat.keystore"
 keystorePass="123456" sslProtocol="TLS" /> 

<Connector port="8009" protocol="AJP/1.3" redirectPort="8843" />

请问 这个是哪里的问题

问题补充:

证书

这些就是证书的获取添加,我是哪里没有添加,还是写错了

寂寞的流星雨的主页 寂寞的流星雨 | 初学一级 | 园豆:96
提问于:2018-10-14 17:25
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册