Certbot 使用自动提供的 webroot 更新证书

Dim*_*las 4 certbot

我已经使用 certbot 的 --standalone 选项创建了一些证书,但我想更新它们所以我运行(测试是否会更新):

sudo certbot renew --dry-run
Run Code Online (Sandbox Code Playgroud)

但是对于某些域,我收到错误

Attempting to renew cert from /etc/letsencrypt/renewal/example.org.conf produced an unexpected error: Missing command line flag or config entry for this setting:
Select the webroot for example.org:
Choices: ['Enter a new webroot', '/var/www/ellakcy/']

(You can set this with the --webroot-path flag). Skipping.
Run Code Online (Sandbox Code Playgroud)

所以我希望在运行时sudo certbot renew能够自动更新我的证书,而无需提供 webroot 路径。

我怎么能做到这一点?

Dim*_*las 7

这是因为它/etc/letsencrypt/renewal/example.org.conf的证书也适用于其他域,因此您需要为其他域以及/etc/letsencrypt/renewal/example.org.confat指定正确的 webroot [[webroot_map]]

对于ellak.org.cy适用于我指定的其他域的域:

[renewalparams]
authenticator = webroot
installer = None
account=^an_account_hash^
[[webroot_map]]
ellak.org = /var/www/ellak.org/
www.ellak.org=/var/www/ellak.org
ellak.org.cy = /var/www/ellakcy/
www.ellak.org.cy = /var/www/ellakcy/
imap.ellak.org.cy = /var/www/mail_letencrypt/
mail.ellak.org = /var/www/mail_letencrypt/
mail.ellak.org.cy = /var/www/mail_letencrypt/
pop.ellak.org.cy = /var/www/mail_letencrypt/
pop3.ellak.org.cy = /var/www/mail_letencrypt/
smtp.ellak.org.cy = /var/www/mail_letencrypt/
guest8.ellak.gr = /var/www/ellakcy/
Run Code Online (Sandbox Code Playgroud)

所以错误已被删除。