Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Tutorials»How to Delete a Let’s Encrypt Certificate using Certbot

    How to Delete a Let’s Encrypt Certificate using Certbot

    By RahulJune 3, 20222 Mins Read

    Certbot is a free and open-source software tool used for managing the Let’s Encrypt certificates. This tool allows users to issue certificates in a single command and also configure the web servers.

    Advertisement

    The default certbot stores all the client certificates under the below-mentioned directories. We are not recommending you delete files manually. In this tutorial, we will discuss deleting unused SSL certificates using the Certbot command line.

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

    Delete a Let’s Encrypt SSL Certificate

    The Certbot also provides you an option to delete certificates automatically for you. To delete an SSL certificate, run the following command.

    sudo certbot delete 
    

    This command will show you an index from which you can select the domain name to delete the associated 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.

    Deleting Let's Encrypt Certificate using Certbot
    Deleting Let’s Encrypt certificate using certbot

    You can also specify the domain name with the certbot command as below. This could be helpful if the domain name does not appear in the index list.

    sudo certbot delete --cert-name example.com
    

    That’s it.

    Conclusion

    This tutorial helped you to delete a Let’s Encrypt SSL certificate using certbot command-line tool.

    certbot delete Let's Encrypt SSL
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Understanding 2>&1 in Bash: A Beginner’s Guide

    How to Choose the Best Shebang (#!) for Your Shell Scripts

    Modulus Operator (%) in Bash

    Using Modulus Operator (%) in Bash

    View 3 Comments

    3 Comments

    1. Mark on July 24, 2022 5:38 pm

      I followed these steps and the cert files were deleted but the backups were still there.

      Reply
    2. Mark on July 24, 2022 5:23 pm

      I followed these steps and the cert files were deleted but the crontab and backups were still there.

      Reply
      • Rahul on July 25, 2022 4:05 am

        That needs to be deleted manually.

        Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.