I’m having problems renewing my certificate. I had some problem and tried the --staging flag, but now it seems that I cannot get back to a valid certificate. Maybe someone of you has an idea that would help me.
In short:
certbot certificates: shows a certificate expiring next year, but (INVALID: TEST_CERT)
certbot renew --dry-run: Congratulations, all renewals succeeded. (The test certificates above have not been saved.)
certbot renew: not due for renewal
My domain is: cloud.bcks.eu
I ran this command: certbot renew (in different variants)
It produced this output: Success or “Attempting to renew cert from /etc/letsencrypt/renewal/cloud.bcks.eu.conf produced an unexpected error: You’ve asked to renew/replace a seemingly valid certificate with a test certificate (domains: cloud.bcks.eu). We will not do that unless you use the --break-my-certs flag!. Skipping.”
My web server is (include version): nginx
I can login to a root shell on my machine (yes or no, or I don’t know): yes
certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Found the following certs:
Certificate Name: cloud.bcks.eu
Domains: cloud.bcks.eu home.bcks.eu read.bcks.eu
Expiry Date: 2019-02-13 17:30:21+00:00 (INVALID: TEST_CERT)
Certificate Path: /etc/letsencrypt/live/cloud.bcks.eu/fullchain.pem
Private Key Path: /etc/letsencrypt/live/cloud.bcks.eu/privkey.pem
Yes, I managed to renew the certificate. In a backup I found that before the --staging test there was no server in the renewal file. That did the trick.
Now I’ll have to find what I broke while trying to renew the certificate.
So basically I could avoid this by either removing the dns entry or removing the certificate and then run someting like:
certbot certonly --webroot -w /var/www/letsencrypt -d cloud.bcks.de -d www.cloud.bcks.eu --rsa-key-size 4096