広告

AWS ubuntu wordpress

Ubuntu 18.04 apache2 Let's encrypt

#apt install certbot
#apt install python-certbot-apache
#certbot --apache -w /var/www/html -d heart-net.biz -d www.heart-net.biz

以下の件名のメールが来たので作成しなおした。
Action required: Let's Encrypt certificate renewals

#certbot --apache -w /var/www/html -d heart-net.biz -d www.heart-net.biz --preferred-challenges http

certbotのバージョンが低かったみたいでまたメールがきました。

以下の作業を行いました。

$certbot --version || /path/to/certbot-auto --version

0.23だったのでアップデートしなくていけない。

以下のサイトを参照してアップデート
https://certbot.eff.org/lets-encrypt/ubuntubionic-apache

$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository universe
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install certbot python-certbot-apache

これで0.28になった

$sudo sh -c "sed -i.bak -e 's/^\(pref_challs.*\)tls-sni-01\(.*\)/\1http-01\2/g' /etc/letsencrypt/renewal/*; rm -f /etc/letsencrypt/renewal/*.bak"

$sudo certbot renew --dry-run

Hits: 22

広告

  • この記事を書いた人

higa

システムエンジニアをやっています。 Linux,macOS好き。おもにシステム管理たまに豆柴こてつの話。 最近はスマートホームを推進中。

-AWS, ubuntu, wordpress