V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Jokerrrrrr
V2EX  ›  Java

tomcat 8.5.28 配置 https 证书问题

  •  
  •   Jokerrrrrr · May 23, 2018 · 2987 views
    This topic created in 2909 days ago, the information mentioned may be changed or developed.
    通过 letsecrypt 生成一些证书,
    然后 tomcat 里配置 如下
    <Connector port="8080" protocol="HTTP/1.1"
    connectionTimeout="20000"
    redirectPort="8433" />
    <Connector port="8449" protocol="org.apache.coyote.http11.Http11Protocol"
    maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
    keystoreFile="/root/tmp/letsTemp/MyDSKeyStore.jks" keystorePass="11111111"
    clientAuth="false" sslProtocol="TLS" />
    https://域名:8449 无法访问,8080 的 http 访问正常。。8449 端口可以连通,,这个问题咋排查,
    参考的链接:
    https://www.centos.bz/2016/10/install-lets-encrypt-to-create-ssl-certificates/

    https://my.oschina.net/chaon/blog/717902
    2 replies    2018-05-23 16:27:21 +08:00
    hcymk2
        1
    hcymk2  
       May 23, 2018
    curl -vk https://域名:8449
    Jokerrrrrr
        2
    Jokerrrrrr  
    OP
       May 23, 2018
    @hcymk2 把这个 MyDSKeyStore.jks 文件放到 tomcat 目录下,,然后指定下位置解决了。。哭 。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1033 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 18:28 · PVG 02:28 · LAX 11:28 · JFK 14:28
    ♥ Do have faith in what you're doing.