twitter facebook

Ubuntu+Apache で Let's encrypt

ubuntu20 + Apache2 環境で 無料SSL(Let's encrypt) を導入します。
ツールインストール
sudo apt install certbot python3-certbot-apache
これで対話式でSSLをインストールします
sudo certbot --apache
自動的にSSLの conf までつくってくれます
Created an SSL vhost at /xxxx/httpd-vhosts-le-ssl.conf
たしかCentOSだと自動更新はCron で回してましたが、Ubuntuのこの一連の作業で SSL更新のほうも自動でやってくれるようです。

自動更新

確認
systemctl status certbot.timer (ドライテスト) sudo certbot renew --dry-run
AUTHOR
@hiropon
最終更新日 2021/03/02
FAVORITE good stock
LINK TAG
記法を見る