Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop renewing a letsencrypt/certbot certificate?

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 
like image 510
Jackson Avatar asked Oct 13 '16 20:10

Jackson


People also ask

How do I cancel my certbot certificate?

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.

Does certbot automatically renew certificates?

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.

Does LetsEncrypt auto renew?

We recommend automatically renewing your certificates every 60 days.

How do I renew certbot certificate LetsEncrypt?

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.


1 Answers

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.

like image 68
minimalis Avatar answered Oct 16 '22 11:10

minimalis