UbuntuサーバーにCertbotを導入しSSL化
新たに自宅に鯖を立て、ぷららのDDNSが使用できる環境なので、Certbotを導入してSSL化をしました。
Certbotの導入
$ sudo apt-get install certbot python3-certbot-apache
$ sudo certbot --apache
途中メールアドレス、規約同意、メール送付同意、ドメイン、httpリダイレクトを聞かれるので、入力し終了。
Certbotの更新タイマーの確認は
$ sudo systemctl status certbot.timer
certbot.timer - Run certbot twice daily
Loaded: loaded (/lib/systemd/system/certbot.timer; enabled; vendor preset:>
Active: active (waiting) since Sat 2022-07-30 11:51:11 JST; 3h 43min ago
Trigger: Sun 2022-07-31 03:50:39 JST; 12h left
Triggers: 笳・certbot.service
Jul 30 11:51:11 ubuntuserver systemd[1]: Started Run certbot twice daily.
一日に2回更新するみたいです。
