Command line tool to check the validity and expiration dates of SSL certificates.

Clone this repo:

Branches

  1. 2995251 multi-stage dockerfile (#2) by Christian · 3 months ago master
  2. 2cd2ef3 update Dockerfile for go 1.8 by Jess Frazelle · 7 months ago
  3. 4f8e714 update travis by Jess Frazelle · 7 months ago
  4. 78c4897 catch UnknownAuthorityError so that self-signed certificates are handled by Jake Warren · 8 months ago
  5. 3e6a22f switch on error by Jess Frazelle · 11 months ago

certok

Travis CI

Command line tool to check the validity and expiration dates of SSL certificates.

Usage

Pass a line deliminated file filled with hostnames to either stdin or the first argument of the command. For example:

$ certok ~/hostsfile
NAME                 SUBJECT            ISSUER                        ALGO           EXPIRES     SUNSET DATE
telize.j3ss.co:443   telize.j3ss.co     Let's Encrypt Authority X3    SHA256-RSA     77 days
r.j3ss.co:443        r.j3ss.co          Let's Encrypt Authority X3    SHA256-RSA     77 days
contained.af:443     contained.af       Let's Encrypt Authority X3    SHA256-RSA     77 days
$ certok -h
certok - v0.1.0
  -all
        Show entire certificate chain, not just the first.
  -d    run in debug mode
  -days int
        Warn if the certificate will expire within this many days.
  -months int
        Warn if the certificate will expire within this many months.
  -v    print version and exit (shorthand)
  -version
        print version and exit
  -years int
        Warn if the certificate will expire within this many years.