开发者社区> 问答> 正文

tomcat 配置 SSL 证书不成功的问题。

server.xml 配置

<Connector
        SSLEnabled="true"
        acceptCount="100"
        clientAuth="false"
            disableUploadTimeout="true"
            enableLookups="false"
            maxThreads="25"
            port="8443"
            keystoreFile="C:\\Users\\Administrator\\Desktop\\ssl_qld\\XXX.keystore" keystorePass="XXX"
            protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https"
            secure="true" sslProtocol="TLS" />

XXX.keystore 为购买的商业证书
web.xml 配置

<security-constraint>
    <web-resource-collection>
        <web-resource-name>securedapp</web-resource-name>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

1
还有一个问题就是 怎么默认为80端口!

展开
收起
落地花开啦 2016-06-01 17:04:03 3594 0
2 条回答
写回答
取消 提交回答
  • 阿里云ping https://ping.gaomeluo.com/aliyun/

    SSL证书配置参考此教程:https://yq.aliyun.com/articles/706986

    2019-07-17 19:23:33
    赞同 1 展开评论 打赏
  • 喜欢技术,喜欢努力的人

    你的SSL 端口指定的是 8443 !在检查一下SSL证书有没有完全导入进去。

    2019-07-17 19:23:33
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载