Greetings,
I have an Ubuntu server that's been running with certbot's auto-renewals (systemd unit) without problems for a long time. Then it was offline for a few months, and during that time span, my certificate expired. Now I put it online again, but both the automatic and the manual renewal process (using Apache as authenticator) keep failing. I know I could use a DNS challenge, but I would rather not because I would like certbot to automatically renew the certificate. Below are the details about what's happening, any help is appreciated as I don't know how to debug this.
My domain is: gtpware.eu (but I'm asking a certificate for the subdomain nas.gtpware.eu, which in turn points to foto.myddns.rocks for which I'm asking a certificate as well)
I ran this command: sudo certbot -v
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: nas.gtpware.eu
2: foto.myddns.rocks
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):
Certificate is due for renewal, auto-renewing...
Renewing an existing certificate for nas.gtpware.eu and foto.myddns.rocks
Performing the following challenges:
http-01 challenge for foto.myddns.rocks
http-01 challenge for nas.gtpware.eu
Waiting for verification...
Challenge failed for domain foto.myddns.rocks
Challenge failed for domain nas.gtpware.eu
http-01 challenge for foto.myddns.rocks
http-01 challenge for nas.gtpware.eu
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: foto.myddns.rocks
Type: connection
Detail: 82.84.159.253: Fetching http://foto.myddns.rocks/.well-known/acme-challenge/nUJSoWP-6RwjPoidVuTVGPuShMHYwc_hMQTIAxT0-EQ: Error getting validation data
Domain: nas.gtpware.eu
Type: connection
Detail: 82.84.159.253: Fetching http://nas.gtpware.eu/.well-known/acme-challenge/iQQDwnfBSmfZWg1ktz9g6WtQ-x-Bcv3EFY4fPXgX7AE: Error getting validation data
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Cleaning up challenges
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My web server is (include version): Apache/2.4.52
The operating system my web server runs on is (include version): Ubuntu 22.04.4 LTS
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): certbot 2.10.0
Thank you for your help,
GTP