目次

Lets Encrypt

インストール

sudo apt-get install letsencrypt
sudo apt install certbot python3-certbot-apache
sudo apt install libapache2-mod-ssl

設定

sudo certbot certonly \
  --webroot \
  -w /home/www/html \
  -d ownDomainName \
  --agree-tos \
  -m "管理者のメールアドレス"

確認

sudo certbot certificates

更新

80 番 port でアクセスできるようにする。 443 port に redirect していると失敗する。 まずは、“–dry-run” でエラーがないか確認。

certbot renew --dry-run

エラーがなければ、

certbot renew

エラーが生じた場合

/etc/letsencrypt/renewal/domain.conf の中身を確認する