Let’s Encrypt証明書を更新するときのメモ。
筆者の使用しているSSL証明書の有効期間は3か月間なので、定期的に更新する必要がある。Cronで自動更新設定もできるようだがその工程は割愛する。
証明書更新方法
以下のコマンドを実行。
# certbot renew
その後、以下のように「success」と表示されればOK。
# certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing confファイルのパス
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator ****, Installer ****
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Renewing an existing certificate for riupad.com
Performing the following challenges:
http-01 challenge for riupad.com
Waiting for verification...
Cleaning up challenges
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new certificate deployed with reload of ****; fullchain is
pemファイルのパス
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations, all renewals succeeded:
pemファイルのパス (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#