I have several Let's encrypt certificates on my server, but when I try to renew them, I get the error below:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/actualite.housseniawriting.com-0001.conf
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator standalone, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for dream-islam.com
http-01 challenge for www.dream-islam.com
Waiting for verification...
Challenge failed for domain dream-islam.com
Challenge failed for domain www.dream-islam.com
http-01 challenge for dream-islam.com
http-01 challenge for www.dream-islam.com
Cleaning up challenges
Attempting to renew cert (actualite.housseniawriting.com-0001) from /etc/letsencrypt/renewal/actualite.housseniawriting.com-0001.conf produced an unexpected error: Some challenges have failed.. Skipping.
-------------------------------------
Knowing that the domain name dream-islam.com, I no longer use it and it has expired and I deleted its certificates in directories such as live, archive and renewal, but the certbot command seems to associate the certificate of domain name actualite.housseniawriting.com at dream-islam. I also checked the conf files and they don't have the old domain name, but certbot keeps finding it.
I used the grep command to find occurrences of the expired domain name and found some in the archive in a privkey file full of valid domain names and not the expired domain.
---------------------------------------
Attempting to parse the version 1.8.0 renewal configuration file found at /etc/l etsencrypt/renewal/vapotage.org.conf with version 0.40.0 of Certbot. This might not work.
Renewal configuration file /etc/letsencrypt/renewal/vapotage.org.conf produced a n unexpected error: expected /etc/letsencrypt/live/vapotage.org/cert.pem to be a symlink. Skipping.
Attempting to parse the version 1.8.0 renewal configuration file found at /etc/l etsencrypt/renewal/www.vapotage.org.conf with version 0.40.0 of Certbot. This mi ght not work.
Renewal configuration file /etc/letsencrypt/renewal/www.vapotage.org.conf produc ed an unexpected error: expected /etc/letsencrypt/live/www.vapotage.org/cert.pem to be a symlink. Skipping.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
Certificate Name: actualite.housseniawriting.com-0001
Domains: actualite.housseniawriting.com dream-islam.com vapotage.org www.dre am-islam.com www.vapotage.org
Expiry Date: 2024-03-03 09:56:17+00:00 (VALID: 6 days)
Certificate Path: /etc/letsencrypt/live/actualite.housseniawriting.com-0001/ fullchain.pem
Private Key Path: /etc/letsencrypt/live/actualite.housseniawriting.com-0001/ privkey.pem
Certificate Name: annuaire.vapotage.org
Domains: annuaire.vapotage.org
Expiry Date: 2024-05-13 09:23:56+00:00 (VALID: 77 days)
Certificate Path: /etc/letsencrypt/live/annuaire.vapotage.org/fullchain.pem
Private Key Path: /etc/letsencrypt/live/annuaire.vapotage.org/privkey.pem
Certificate Name: vapotage.org-0001
Domains: vapotage.org www.vapotage.org
Expiry Date: 2024-05-13 09:24:03+00:00 (VALID: 77 days)
Certificate Path: /etc/letsencrypt/live/vapotage.org-0001/fullchain.pem
Private Key Path: /etc/letsencrypt/live/vapotage.org-0001/privkey.pem
The following renewal configurations were invalid:
/etc/letsencrypt/renewal/vapotage.org.conf
/etc/letsencrypt/renewal/www.vapotage.org.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I'm using nginx and the expired domain don't show in them when I use nginx -T
The problem with certbot delete is that that I have delete the conf file of the expired domain :
sudo certbot delete --cert-name dream-islam.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
No certificate found with name dream-islam.com (expected /etc/letsencrypt/renewal/dream-islam.com.conf).
The first one contains both names.
So, the other two aren't needed and can safely be removed.
[Given that your web server is no longer using their certs]