永洪社区
标题:
https配置
[打印本页]
作者:
Gaoj
时间:
2022-11-17 15:50
标题:
https配置
产品版本是9432
按照
https://club.yonghongtech.com/fo ... amp;highlight=https
https://club.yonghongtech.com/fo ... amp;highlight=https
两个方法配置https后都无法正常访问产品,修改为原来后可以http正常访问
作者:
Gaoj
时间:
2022-11-25 11:19
请问这个能看下吗
作者:
0xRichard
时间:
2022-11-25 11:45
修改tomcat/conf/server.xml
<Connector port="18011"
protocol="org.apache.coyote.http11.Http11NioProtocol"
SSLEnabled="true"
maxThreads="800"
scheme="https"
secure="true"
clientAuth="false"
sslProtocol="TLS"
keystoreFile="D:/tomcat.keystore"
keystorePass="123456"/>
<Connector port="18011" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
修改tomcat/conf/web.xml(注意把已有的注释掉)
<login-config>
<!-- Authorization setting for SSL -->
<auth-method>CLIENT-CERT</auth-method>
<realm-name>Client Cert Users-only Area</realm-name>
</login-config>
<security-constraint>
<!-- Authorization setting for SSL -->
<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>
按照自己的实际来配置,参考上面以及这个的blog:
https://www.cnblogs.com/s313139232/p/14251088.html
欢迎光临 永洪社区 (https://club.yonghongtech.com/)
Powered by Discuz! X3.4