Last active
March 3, 2022 23:43
-
-
Save alsunseri/d5e17308a739b2fef6f651666989281c to your computer and use it in GitHub Desktop.
certbot: remove one certificate from automatic renewals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The delete command will remove the cert from the server along with the assoicated letsencrypt files for that certificate. | |
# certbot delete --cert-name certtoremove.tld | |
OR | |
just run | |
# certbot delete | |
Running certbot delete with no options leads to a nice numbered list of all certificates . | |
Choose the certs to be removed by number ( comma or space separated ) but note - blank answer will remove all certs supposedly so be careful. | |
In order to prevent renewals yet retain the certificate and files simmply | |
rename or move the single relevant file in /etc/letsencrypt/renewal/ for that certificate | |
ie. | |
mv /etc/letsencrypt/renewal/oldcertdomain.tld.conf /etc/letsencrypt/renewal/oldcertdomain.tld.txt | |
See https://stackoverflow.com/questions/40030537/how-to-stop-renewing-a-letsencrypt-certbot-certificate | |
and | |
https://eff-certbot.readthedocs.io/en/stable/using.html#certbot-command-line-options |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment