Posted at

opensslコマンドでSSL証明書の有効期限を確認する

More than 3 years have passed since last update.

$ openssl s_client -connect example.com:443 < /dev/null 2> /dev/null | openssl x509 -text | grep Not

Not Before: Sep 25 09:14:02 2014 GMT
Not After : Oct 27 09:49:54 2017 GMT

Not Afterが有効期限