Let's Encrypt 有効期限の確認コマンド

certbot certificates

 いつもLet's Encryptの有効期限がいつまでなのか忘れるのでメモ。
上のコマンドを実行すれば期限切れの日時(GMT+0)と残り日数が表示される

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

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
  Certificate Name: caramelsauce.info
    Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Key Type: ECDSA
    Domains: caramelsauce.info *.caramelsauce.info
    Expiry Date: 2023-01-01 01:23:45+00:00 (VALID: 52 days)
    Certificate Path: /etc/letsencrypt/live/caramelsauce.info/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/caramelsauce.info/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -