1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

LetsEncrypt の自動更新時に webroot が未設定で更新できてない場合の対処

Posted at

問題

手動で certbot の webroot を設定した場合、自動更新の時期になると以下のようなメッセージが出てきて、certbot renew が走っているにも関わらず証明書が更新されていないことがある。

Failed to renew certificate www.example.com with error: Missing command line flag or config entry for this setting:
Input the webroot for www.example.com:

この対処方法を良く忘れるのでメモ

対処

/etc/letsencrypt/renewal/ 以下に証明書ごとに対応した設定ファイルが作られる。
ここで ``[[webroot_map]]` セクションを追加する。 一つの証明書で複数のドメインに対処している場合は複数行書けばOK。

[[webroot_map]]
example.com = <<設定したWebrootの場所>>
www.example.com = <<設定したWebrootの場所>>
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?