hello123vvv
V2EX  ›  问与答

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

  •  
  •   hello123vvv · Jun 16, 2017 · 2947 views
    This topic created in 3278 days ago, the information mentioned may be changed or developed.

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

    5 replies    2017-06-20 17:48:41 +08:00
    AstroProfundis
        2
    AstroProfundis  
       Jun 16, 2017
    check_http
    binjjam
        3
    binjjam  
       Jun 16, 2017
    我一般是用命令来完成的
    openssl x509 -noout -in /path/mysite.crt -enddate

    然后会出类似这样的结果
    notAfter=Oct 10 06:04:38 2018 GMT
    UnisandK
        4
    UnisandK  
       Jun 16, 2017
    Williamp
        5
    Williamp  
       Jun 20, 2017
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3709 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 00:49 · PVG 08:49 · LAX 17:49 · JFK 20:49
    ♥ Do have faith in what you're doing.