Let's Encrypt free SSL certificates

Let’s Encrypt is a free, automated, and open certificate authority (CA) that issues free digital certificates, enabling users to configure their websites to use HTTPS (SSL/TLS). Though the process of generating and installing a Let’s Encrypt certificate is simple and can even be automated, mistakes do happen, and you may sometimes want to revoke a certificate.

This short post shows how to take that action, when the occasion calls for it.

To revoke a certificate, assuming you’re using certbot, the official client program, you’ll issue the following command:

# Revoke a certificate using the following command
# Replace example.com with your own domain name

sudo certbot revoke --cert-path /etc/letsencrypt/live/example.com/fullchain.pem

#

That just makes the certificate invalid, but it’s still installed on your system. Now you just need to delete it. To delete a certificate, you first need to find out the name of the certificate to delete. The commands to do both – finding the name of the certificate and deleting it, and their associated outputs, are given in the following code block:

# To delete a certificate, first find the name of the certificate using
# > indicates output

sudo certbot certificates

> Saving debug log to /var/log/letsencrypt/letsencrypt.log

> ------------------------------------------------------------------------
> Found the following certs:
>  Certificate Name: example.com
>    Domains: example.com www.example.com
>    Expiry Date: 2017-10-01 00:59:00+00:00 (INVALID: REVOKED)
>    Certificate Path: /etc/letsencrypt/live/example.com/fullchain.pem
>    Private Key Path: /etc/letsencrypt/live/example.com/privkey.pem
> ------------------------------------------------------------------------

# So the name of the certificate is example.com. Now delete it using


sudo certbot  delete  --cert-name example.com

> Saving debug log to /var/log/letsencrypt/letsencrypt.log

> ------------------------------------------------------------------------
> Deleted all files relating to certificate example.com.
> ------------------------------------------------------------------------

#

With that, the certificate is not only revoked, but also deleted from the system. You can now generate and install another certificate using the same domain name and not encounter an error. You may find out more about the Let’s Encrypt service by visiting the project’s home page.

Related Post:  Use Tor Browser, get your computer blacklisted

Let's Encrypt free SSL certificates

Share:

Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on linkedin
LinkedIn

Hola! Did you notice that LinuxBSDos.com no longer runs network ads?  Yep, no more ads from the usual suspects that track you across the Internet.  But since  I still need to pay to keep the site running, feel free to make a small donation by PayPal.

Subscribe for updates. Trust me, no spam!

Mailchimp Signup Form

Sponsored links

1. Attend Algorithm Conference, a top AI and ML event for 2020.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest

On social media
Via my newsletter
Mailchimp Signup Form

Sponsored links

1. Attend Algorithm Conference, a top AI and ML event for 2020.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.
Hacking, pentesting distributions

Linux Distributions for Hacking

Experts use these Linux distributions for hacking, digital forensics, and pentesting.

Categories
Archives

The authors of these books are confirmed to speak during

Algorithm Conference

T-minus AI

Author was the first chairperson of AI for the U.S. Air Force.

The case for killer robots

Author is the Director of the Center for Natural and Artificial Intelligence.

Why greatness cannot be planned

Author works on AI safety as a Senior Research Scientist at Uber AI Labs.

Anastasia Marchenkova

An invitation from Anastasia Marchenkova

Hya, after stints as a quantum researcher at Georgia Tech Quantum Optics & Quantum Telecom Lab, and the University of Maryland Joint Quantum Institute, I’m now working on superconducting qubit quantum processors at Bleximo. I’ll be speaking during Algorithm Conference in Austin, Texas, July 16 – 18, 2020. Meet me there and let’s chat about progress and hype in quantum computing.