Amazon Linux1で [Skipping bootstrap because certbot-auto is deprecated on this system.]


certbot-autoは非推奨になりました。

$ sudo ./certbot-auto certonly --debug -n -m [MyEmail] --agree-tos --standalone -d [host.mydomain] --keep-until-expiring

Skipping bootstrap because certbot-auto is deprecated on this system.
Your system is not supported by certbot-auto anymore.
Certbot cannot be installed.
Please visit https://certbot.eff.org/ to check for other alternatives.

oh...証明書取得できない

It is only certbot-auto that we deprecated.
理由は、python2の寿命だよ.

certbotをいれる

Apache on Other Linux (snapd)
Apache on Other Linux (pip)

AmazonLinux1だとsnapdは、入らないよな
pipにしましょ

外部リポジトリからpython3を探して入れようとしていたが
Amazonのリポジトリにpython36が提供されていることがわかった。

ptthon36を入れる

$ sudo yum -y install python36 python36-pip augeas-libs

Apache on Other Linux (pip)に従って

$ sudo python3 -m venv /opt/certbot/
$ sudo /opt/certbot/bin/pip install --upgrade pip
$ sudo /opt/certbot/bin/pip install certbot certbot-apache
$ sudo ln -s /opt/certbot/bin/certbot /usr/bin/certbot

これでcertbotで証明書取得成功です。

$ sudo certbot certonly --debug -n -m [MyEmail] --agree-tos --standalone -d [host.mydomain] --keep-until-expiring