I’m running certbot on Debian 8 (0.6.0). I have set up the first domain using the client with the webroot method. Anyhow, when i run the certbot renew command I get this message:
2016-06-07 09:27:38,138:WARNING:certbot.renewal:Attempting to renew cert from /etc/letsencrypt/renewal/xxx.conf produced an unexpected error: Missing command line flag or config entry for this setting:
Select the webroot for xxx:
Choices: ['Enter a new webroot']
(You can set this with the --webroot-path flag). Skipping.
My idea was now to set the webroot path in the config file of every domain in /etc/letsencrypt/renewal/ like the error states above. But somehow this does not work. What is the correct way to do that?
I’ve used certbot certonly and ./certbot-auto certonly (from the repo or direct download. Using the same version to renew the certificate then using certbot renew --dry-run or ./certbot-auto renew --dry-run.
This is part of the config file:
# Options used in the renewal process
[renewalparams]
authenticator = webroot
installer = None
account = xxx
Tried to create and renew a new certificate now with certbot 0.8.0, but same thing happens
Nope - did specify nothing at the command level, did use the “graphical” interface and entered the webpath there.
Added webroot_path now to the config, works now - thanks. Should be added in the documentation somewhere, or the client should write the entered path in the config I guess.
@phluko, I do think what you’ve encountered is a bug because the webroot_path that you entered originally should have been saved automatically and re-used. I’m curious whether it was saved and then got removed later, or whether it was never saved at all. Of course, that’s hard for you to confirm at this point.
I’ll make a note to try an experiment and see if I can reproduce the problem from what you’ve described.
I’m glad that adding webroot_path manually worked for you, though.
@JBourne, it needs to be something like ./certbot-auto certonly --webroot-path /path/to/webroot -d domain1.example.com -d domain2.example.com (there has to be a verb, which for the renewal case should be certonly).