My domains are:
svn.boberglund.com
video.boberglund.com
I ran this command:
sudo certbot-auto renew --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/svn.boberglund.com-0001.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for svn.boberglund.com
Cleaning up challenges
Attempting to renew cert (svn.boberglund.com-0001) from /etc/letsencrypt/renewal/svn.boberglund.com-0001.conf produced an unexpected error: Missing command line flag or config entry for this setting:
Input the webroot for svn.boberglund.com:. Skipping.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/svn.boberglund.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for svn.boberglund.com
http-01 challenge for video.boberglund.com
Cleaning up challenges
Attempting to renew cert (svn.boberglund.com) from /etc/letsencrypt/renewal/svn.boberglund.com.conf produced an unexpected error: Missing command line flag or config entry for this setting:
Select the webroot for svn.boberglund.com:
Choices: ['Enter a new webroot', '/var/www/html']
(You can set this with the --webroot-path flag). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/svn.boberglund.com-0001/fullchain.pem (failure)
/etc/letsencrypt/live/svn.boberglund.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates below have not been saved.)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/svn.boberglund.com-0001/fullchain.pem (failure)
/etc/letsencrypt/live/svn.boberglund.com/fullchain.pem (failure)
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates above have not been saved.)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 renew failure(s), 0 parse failure(s)
My web server is (include version):
Apache/2.4.41 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 18.04.3 LTS
My hosting provider, if applicable, is:
Self-hosted
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, just command line tools via PuTTY
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
certbot --version
certbot 0.31.0
sudo certbot-auto --version
certbot 1.0.0 <== This is very strange, I thought it would be 0.37.0 or similar
I need to renew my certs again and like first time it does not work…
I have 3 different domains served by the same Apache server on my single incoming line with a dynamic IP address. So both of the listed domains above use the same IP address but are separate virtual servers and they are only open for https communications.
Additionally I have opened a 3rd virtual host with the domain name home.boberglund.com in order to have a location to be used for the certbot renewal since it seems to need access to the webroot for verification purposes.
Note that all the three subdomains are set to exactly the same external IP address.
The two virtual hosts I use the cert for are protected from external access by requiring a user/password login using basic authentication. So even when using https, the site requires login.
The first time I had created the certs and was checking the update function I had to ask here for help and my problem then was solved by advising me to use certbot-auto rather than certbot and to edit the conf file as shown in this thread.
Back in November I managed to renew these certs so they last until come January.
But now I am again at a loss on how to do it. I have not edited my files since then but I have updated Ubuntu several times so it is fully current. Could that have broken certbot-auto and/or certbot so it won’t work anymore?
Here is my renewal configuration file:
/etc/letsencrypt/renewal/svn.boberglund.com.conf
# renew_before_expiry = 30 days
version = 0.31.0
archive_dir = /etc/letsencrypt/archive/svn.boberglund.com
cert = /etc/letsencrypt/live/svn.boberglund.com/cert.pem
privkey = /etc/letsencrypt/live/svn.boberglund.com/privkey.pem
chain = /etc/letsencrypt/live/svn.boberglund.com/chain.pem
fullchain = /etc/letsencrypt/live/svn.boberglund.com/fullchain.pem
# Options used in the renewal process
[renewalparams]
account = b5058df1c187177209688fe263dcd9e9
pref_challs = http-01,
authenticator = webroot
server = https://acme-v02.api.letsencrypt.org/directory
[[webroot_map]]
video.boberglund.com = /var/www/html
Notice that the ONLY site reachable without login is home.boberglund.com, the two sites I need the cert for are both requiring user login.