Prints out TLS certificate expiration date for remote servers.
Go to file
2017-12-12 13:27:52 -08:00
vendor/github.com/pkg/errors vendor deps 2017-12-12 13:27:43 -08:00
Gopkg.lock Add dep files 2017-12-12 13:27:37 -08:00
Gopkg.toml Add dep files 2017-12-12 13:27:37 -08:00
LICENSE init 2017-12-12 11:55:01 -08:00
main.go Don't verbose print errors 2017-12-12 13:26:59 -08:00
README.md init 2017-12-12 11:55:01 -08:00

certexp

report certificate expiry for a collection of servers, which yields equivalent information to:

$ echo | openssl s_client -connect $hostname:$port 2> /dev/null | openssl x509 -noout -dates | grep notAfter

example usage

$ cat sites.txt
apple.com
google.com
amazon.com
imap.gmail.com:993
$ cat sites.txt | certexp
apple.com                2018-10-31 23:59:59 +0000 UTC
google.com               2018-02-13 15:19:00 +0000 UTC
amazon.com               2018-09-21 23:59:59 +0000 UTC
imap.gmail.com           2018-02-27 09:29:00 +0000 UTC