Gaoj青铜一
2022-11-17 15:50:25 发布在问答
【管理与运维】 https配置
产品版本是9432

按照https://club.yonghongtech.com/fo ... amp;highlight=https

https://club.yonghongtech.com/fo ... amp;highlight=https

两个方法配置https后都无法正常访问产品,修改为原来后可以http正常访问

https.rar

20.05 KB, 下载次数: 7

4207
2
精彩评论2
Gaoj青铜一
发表于 2022-11-25 11:19:19 显示全部楼层
请问这个能看下吗
回复

使用道具 2#

0xRichard青铜四
发表于 2022-11-25 11:45:55 显示全部楼层
修改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
回复

使用道具 3#

高级模式
您需要登录后才可以回帖 登录 | 免费注册

  • 官方微信

    欢迎关注永洪服务号!收费为0,价值无限

    扫码关注
  • 新浪微博

    让每位用户轻松挖掘数据价值!

    访问新浪微博
  • 智能客服
1500W

用户等你来哦

Copyright   ©2012-2025  北京永洪商智科技有限公司  (京ICP备12050607) 京公网安备110110802011451号 |《永洪社区协议》
返回顶部