我已经使用certbot的-独立选项创建了一些证书,但是我想更新它们,所以我运行(测试是否会被更新):
sudo certbot renew --dry-run但是对于某些域,我得到了错误。
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.因此,我希望在运行sudo certbot renew时能够自动更新我的证书,而不需要提供webroot路径。
我怎么能这么做?
发布于 2018-03-10 01:13:22
这是偶然的,因为在/etc/letsencrypt/renewal/example.org.conf上,它的证书也适用于其他域,所以您需要为其他域指定正确的webroot,在[[webroot_map]]的/etc/letsencrypt/renewal/example.org.conf中也需要指定正确的webroot。
对于应用于我指定的其他域的域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/所以这个错误被删除了。
https://serverfault.com/questions/900960
复制相似问题