2021年9月10日

certbotがエラーを出している。

Your system is not supported by certbot-auto anymore.

ログインして確認。

$ sudo certbot renew --dry-run
(snip)
All renewal attempts failed. The following certs could not be renewed:
(snip)

おっと。なんかバージョンが古いのが問題らしい。

$ certbot --version
certbot 0.31.0

バージョンをあげてみる。

yum install --enablerepo=epel certbot
$ certbot --version
An unexpected error occurred:
AttributeError: 'module' object has no attribute 'TLSSNI01'
Please see the logfile '/tmp/tmpjRf06l/log' for more details.

うげ、バージョンを上げたら動かなくなったぞ。python2-certbotをアップデートすれば良いらしい。

sudo yum update python2-certbot*
$ certbot --version
certbot 1.11.0

よしよし、動いた。

$ sudo certbot renew --dry-run
(snip)
Congratulations, all simulated renewals succeeded:

動いた。よかった。焦った。