There are lots of tutorials online of how to create and renew a certificate with letsencrypt, but I want to remove and stop renewing a certificate that I created (it was only created for testing purposes). How do I stop renewing one certificate originally obtained with the letsencrypt
command (while still continuing to renew other certificates)?
I don't see a single instance of anyone asking this question anywhere else, nor a command in man letsencrypt
that seems to do it.
Currently I am renewing certificates with the following cron job:
30 2 * * 1 /usr/bin/letsencrypt renew >> /var/log/le-renew.log 35 2 * * 1 /bin/systemctl reload nginx
Just type the index number of the domain name, that you want to delete and hit enter. The issued certificate including other associated files will be deleted.
On supported systems, the automated configuration makes it fast and easy to obtain, install, and automatically renew certificates. If automated configuration is not supported for your web server, you can still get a certificate using Certbot and configure your server software manually.
We recommend automatically renewing your certificates every 60 days.
Renewing the LetsEncrypt certificate using the certbotObtain a browser-trusted certificate and set it up on your web server. Keep track of when your certificate is going to expire, and renew it. Help you revoke the certificate if that ever becomes necessary. Renew the certificate forcefully if the need arises.
With certbot
, you can simply use:
certbot delete --cert-name mywebsite.com
This removes the certificate and all relevant files from your letsencrypt config directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With