Delete Letsencrypt certificates

  about 166 words   1 min

Certbot

Letsencrypt allows you to get a free certificate that you will need to renew each three months.

There are a lot of tutorials online on how to get one or more and I would like more to focus on how to delete them when you don't need it anymore.

Deleting a SSL certificate is not about just deleting one file only. You need to go through a couple of them as well as some directories associated with the certificate for the domain name that you want to get rid of.

The list of directories is :


  /etc/letsencrypt/live
  /etc/letsencrypt/renewal
  /etc/letsencrypt/archive

Certbot

Certbot allows you to install a certificate but also to delete them. It provides an easy way to do the deletion for you by selecting the index number from which you can choose the domain name to remove :


  % sudo certbot delete

You can also provide the domain name directly on the command line :


  % sudo certbot delete --cert-name website.com


There you go !


letsencrypt CLI shell
STORIES BASED ON SAME TAGS

What aliases do you use ?

Here is a list of aliases I use more or less frequently. Aliases and shell functions is a thing that I couldn't live without. It helps you type less to do more. I've been using zsh for a while now and I've never been a real fan about bash. Prior to that shell I used to work with diferrent ksh variants.

Read more

Bypass firewall rules

At work, they changed a firewall and added a rule to block Youtube. I'm fine with that but some colleagues are quite annoyed by that change. They really want to watch tutorials or kitten on Youtube. What I like about ssh is how it helps you to bypass a lot of things 😉 What a lot of people don't know about ssh is that it include a SOCKS proxy out of the box that you need to configure in your browser to bypass a restriction.

Read more

Using Timewarrior With Taskwarrior

Terminals have always been a thing that I loved to use. I spend a lot of times using and tweaking them. i My daily use include a lot of this little programs that help you to improve your productivity. Keybindings and customizations is also one thing that I love about terminals compared to GUI. That's also why I awesomewm. For those who don't know what it is, it's a lightweight tiling window manager like Ion.

Read more