V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Jokerrrrrr
V2EX  ›  Java

tomcat 8.5.28 配置 https 证书问题

  •  
  •   Jokerrrrrr · 2018-05-23 15:43:09 +08:00 · 2449 次点击
    这是一个创建于 2137 天前的主题,其中的信息可能已经有所发展或是发生改变。
    通过 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 条回复    2018-05-23 16:27:21 +08:00
    hcymk2
        1
    hcymk2  
       2018-05-23 16:02:19 +08:00
    curl -vk https://域名:8449
    Jokerrrrrr
        2
    Jokerrrrrr  
    OP
       2018-05-23 16:27:21 +08:00
    @hcymk2 把这个 MyDSKeyStore.jks 文件放到 tomcat 目录下,,然后指定下位置解决了。。哭 。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2827 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:27 · PVG 21:27 · LAX 06:27 · JFK 09:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.