Check a remote certification expiry using openssl s_client.
% ./check-cert-net -h
Usage:
check-cert-net [OPTIONS]
Application Options:
-H, --host= Hostname (default: localhost)
-p, --port= Port (default: 443)
--servername= servername in ClientHello
--verify-servername verify servername
--timeout= Timeout to connect to server (default: 5s)
--rsa Preferred aRSA cipher to use
--ecdsa Preferred aECDSA cipher to use
-c, --critical= The critical threshold in days before expiry (default: 14)
-w, --warning= The threshold in days before expiry (default: 30)
-v, --version Show version
Help Options:
-h, --help Show this help message
$ check-cert-net --servername example.com --host 127.0.0.1 --port 443 --rsa -w 10 -c 7
check-cert-net OK: Expiration date: 2020-07-02, 62 days remaining
$ mkr plugin install kazeburo/check-cert-net