Amazon LightsailのWordPressで、Let’s EncryptのSSL証明書の期限切れが近いメールが届いた

自動更新されるはずのLet’s EncryptのSSL証明書が、有効期限間近になっていました。

対応は、初期に実施したSSL証明書発行と同じ事をすれば良いです。ちょうど2年前に初期設定したので、2年毎には更新しないといけないのかも知れません。

目次

Let’s EncryptのSSL証明書の期限切れが近いメール

Let's Encrypt certificate expiration notice for domain "blog2020.iwadjp.com" (and 3 more)

Let's Encrypt Expiry Bot <expiry@letsencrypt.org>
2022/06/11 21:30 

Hello,

Your certificate (or certificates) for the names listed below will expire in 6 days (on 17 Jun 22 23:00 +0000). Please make sure to renew your certificate before then, or visitors to your web site will encounter errors.

We recommend renewing certificates automatically when they have a third of their total lifetime left. For Let's Encrypt's current 90-day certificates, that means renewing 30 days before expiration. See https://letsencrypt.org/docs/i

https://community.letsencrypt. Unfortunately, we can't provide support by email.

For details about when we send these emails, please visit: https://letsencrypt.org/docs/e

http://delivery.letsencrypt.oremail%3Di%252A%252A%252A%252A%2540g%252A%252A%252A%252A.%252A%252A%252A
Please note that this would also unsubscribe you from other Let's Encrypt service notices, including expiration reminders for any other certificates.

Regards,
The Let's Encrypt Team

SSL証明書の更新

初期にSSL証明書を発行した時と同じコマンドを実行すれば良い。

sudo /opt/bitnami/bncert-tool

途中、ドメインリストの指定、既存の証明書の上書き許可、http -> httpsへのリダイレクト、www -> wwwなしへのリダイレクト設定が問われます。

Warning: The web server configuration check failed. Please fix the configuration

このエラーが出た場合は、WordPressインスタンスを再起動すれば直ることがあるらしい。実際、このサイトでは直りました。

参考

WordPress

Posted by iwadjp