LoginSignup
1
1

More than 5 years have passed since last update.

NginxにLet's Encriptを設定して自動更新するまで

Posted at

Cerbotのインストール

$ wget https://dl.eff.org/certbot-auto
$ sudo mv certbot-auto /usr/local/bin/certbot-auto
$ sudo chmod a+x /usr/local/bin/certbot-auto

証明書発行

$ certbot-auto --nginx
# メールアドレスやどのドメインの証明書を発行するかを設定

自動更新設定

以下をcronに設定。一応、月に2回走るようにしました。
期限切れ30日以内であれば更新され、そうでないならスルーされます。

0 0 1,15 * * certbot-auto renew
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1