V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
hello123vvv
V2EX  ›  问与答

请问如何指检查 SSL 证书的到期时间?

  •  
  •   hello123vvv · 2017-06-16 11:06:48 +08:00 · 2055 次点击
    这是一个创建于 2520 天前的主题,其中的信息可能已经有所发展或是发生改变。

    请问如何指检查 SSL 证书的到期时间? 最好用 python, 有没相关的在线服务呢??

    5 条回复    2017-06-20 17:48:41 +08:00
    AstroProfundis
        2
    AstroProfundis  
       2017-06-16 11:35:22 +08:00
    check_http
    binjjam
        3
    binjjam  
       2017-06-16 12:54:29 +08:00
    我一般是用命令来完成的
    openssl x509 -noout -in /path/mysite.crt -enddate

    然后会出类似这样的结果
    notAfter=Oct 10 06:04:38 2018 GMT
    UnisandK
        4
    UnisandK  
       2017-06-16 13:15:27 +08:00
    Williamp
        5
    Williamp  
       2017-06-20 17:48:41 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3113 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:30 · PVG 22:30 · LAX 07:30 · JFK 10:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.