SSL証明書の期限確認

SSL証明書の期限をコマンドで確認する方法です。

# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
Certificate Name: early2home.com
Domains: early2home.com
Expiry Date: 2020-09-22 17:33:02+00:00 (VALID: 89 days)
Certificate Path: **********************************.pem
Private Key Path: **********************************.pem
Certificate Name: www.early2home.com
Domains: www.early2home.com
Expiry Date: 2020-09-17 17:05:34+00:00 (VALID: 84 days)
Certificate Path: **********************************.pem
Private Key Path: **********************************.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

更新は自動で実施するよう設定していることが多いと思いますのであまり期限を確認する機会は無いと思いますが。期限を確認したくなったら上記のようにコマンド実行します。