Processing /etc/letsencrypt/renewal/dev.insurebox.co.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for dashboard.insurebox.co
http-01 challenge for dev.insurebox.co
Cleaning up challenges
Attempting to renew cert (dev.insurebox.co) from /etc/letsencrypt/renewal/dev.insurebox.co.conf produced an unexpected error: Missing command line flag or config entry for this setting:
Input the webroot for dashboard.insurebox.co:. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/dev.insurebox.co/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
My web server is (include version):
Node.js + Express
The operating system my web server runs on is (include version):
Debian 10
My hosting provider, if applicable, is:
Google compute engine
I can login to a root shell on my machine (yes or no, or I don't know):
Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
0.31.0
How to I provide the same webroot to both subdomains?
That should have been remembered the first time you ran certbot. Perhaps a bug in certbot, but your version 0.31 is already ancient. Thanks Debian!. Could you please upgrade certbot to a newer version?
Bingo! From that I've read in the certbot almanac, if you're creating a certificate with identical subjects to an existing certificate, certbot will draw upon the
configuration for that certificate to fill in the holes.
Thanks for the answer, I tried both approaches. When I tried the first command, specifying the same webroot for both, I still got the same error. Then I tried the second command specifying the same webroot in both of the -w flags and the error changed to:
Attempting to renew cert (dev.insurebox.co) from /etc/letsencrypt/renewal/dev.insurebox.co.conf produced an unexpected error: Missing command line flag or config entry for this setting:
Select the webroot for dashboard.insurebox.co:
Choices: ['Enter a new webroot', '/path/to/my/project']
And I think I've reached my limit of 5 certs per 7 days...
Still getting the same error: Input the webroot for dashboard.insurebox.co:. Skipping.
Note: When I ran sudo snap remove certbot and then sudo snap install certbot --classic, it said: certbot 1.8.0 from Certbot Project (certbot-eff✓) installed, but still certbot version shows as 0.31.0. I'm confused.
Okay, my bad, I also had to run apt-get remove certbot and then installed certbot from snap. That installed the correct version. Now Everything works. The error is gone. I can dry run renew without any errors!
Thanks a lot for your help...