With Certbot, one can create, renew, revoke and delete Let’s Encrypt SSL certificates easily using the command line. By default, Let’s Encrypt will store all the client certificates in the following folders:
/etc/letsencrypt/live /etc/letsencrypt/renewal /etc/letsencrypt/archive
When a new certificate is issued, it is stored in the /etc/letsencrypt/live directory. The archive folder stores copies of the live certificates. If you no longer need a certificate or if the certificate has been compromised, you revoke and issue a new request. Below is how to revoke a certificate. How to revoke a Let’s Encrypt certificate on Ubuntu Linux
How to delete Let’s Encrypt SSL certificates on Ubuntu Linux
As mentioned above, Certbot is a command-line tool that simplifies the process of obtaining and renewing Let’s Encrypt SSL certificates. When you revoke a Let’s Encrypt SSL certificate, a remnant of the certificate may still be on the server. To completely get rid of certificates you are no longer going to use, you should use Certbot to delete them. Below is how to do that. First, sign into the server and open the command terminal. Then run the commands below for the domain you wish to delete its SSL certificate. Replace example.com with the actual domain name. If you do not reference the domain name and simply run the commands below, it will list all the domains registered on the server. Then select the one from the list to delete. Select the domain next to the number you wish to delete and press ENTER. That should do it! Related post:
How to revoke a Let’s Encrypt SSL certificate on Ubuntu Linux
Conclusion: This post showed you how to delete a Let’s Encrypt SSL certificate using Certbot on Ubuntu Linux. If you find any error above or have something to add, please use the comment form below.