Facebook X (Twitter) Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook X (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.

    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

    How to Ignore SSL Certificate Check with Wget

    How to Ignore SSL Certificate Check with Curl

    Understanding the LD_LIBRARY_PATH Environment Variable

    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
    • Difference Between Full Virtualization vs Paravirtualization
    • Virtualization vs. Containerization: A Comparative Analysis
    • Using .env Files in Django
    • Using .env File in FastAPI
    • Setting Up Email Notifications for Django Error Reporting
    Facebook X (Twitter) Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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