certbotのやり方間違えてrenewしようとしたら吐きそうになったので備忘録

間違ってmanualで入れたらrenewのときにみんな大好き

Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/ワシのドメイン.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Failed to renew certificate ワシのドメイン with error: The manual plugin is not working; there may be problems with your existing configuration.
The error was: PluginError('An authentication script must be provided with --manual-auth-hook when using the manual plugin non-interactively.')

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All renewals failed. The following certificates could not be renewed:
  /etc/letsencrypt/live/ワシのドメイン/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

が出て吐きそうになったのでメモっておく

certbot certonly --webroot -w WEBROOTの場所(/とかいらない) -d ドメイン名 -m メアド --agree-tos -n

当たり前だがcertbotはhttpで読みに来るので、httpsに301とか横着せずに80(http)にドキュメントルートを設定するのがキモ

以上だが、そもそも多数のサイトでcertbot使ってるのに指定方法くらい統一しておけって話だった

この記事が気に入ったらサポートをしてみませんか?