Help needed to delete certificates


#1

I am very new to all this (try to learn something) and after messing around quite a bit, I need help to revoke/delete all certificates. Below are the info and let me know what else is needed:

  1. Run: certbot certificates (I followed the certbot instructions to issue the certificates for domain.com sub1.domain.com www.domain.com)
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Attempting to parse the version 0.22.2 renewal configuration file found at /etc/letsencrypt/renewal/domain.com-0001.conf with version 0.21.1 of Certbot. This might not work.
    Attempting to parse the version 0.22.2 renewal configuration file found at /etc/letsencrypt/renewal/domain.com.conf with version 0.21.1 of Certbot. This might not work.

Found the following certs:
Certificate Name: domain.com-0001
Domains: domain.com sub1.domain.com www.domain.com
Expiry Date: 2018-06-30 03:51:00+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/domain.com-0001/fullchain.pem
Private Key Path: /etc/letsencrypt/live/domain.com-0001/privkey.pem
Certificate Name: domain.com
Domains: *.domain.com domain.com
Expiry Date: 2018-06-30 02:26:26+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/domain.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/domain.com/privkey.pem

  1. Run: ./certbot-auto certificates (I followed instructions to issue wildcard certificates for *.domain.com domain.com)
    Saving debug log to /var/log/letsencrypt/letsencrypt.log

Found the following certs:
Certificate Name: domain.com-0001
Domains: domain.com sub1.domain.com www.domain.com
Expiry Date: 2018-06-30 03:51:00+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/domain.com-0001/fullchain.pem
Private Key Path: /etc/letsencrypt/live/domain.com-0001/privkey.pem
Certificate Name: domain.com
Domains: *.domain.com domain.com
Expiry Date: 2018-06-30 02:26:26+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/domain.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/domain.com/privkey.pem

Please help how to revoke/delete all certificates.

Thanks,


How to remove let's encrypt on cloned server
#2

You can run

certbot delete --cert-name domain.com-0001
certbot delete --cert-name domain.com

If you really want to get rid of all of your Let’s Encrypt “state”, you can just fully delete or rename the /etc/letsencrypt directory . This would delete all of your private keys, certificates and Let’s Encrypt accounts


#3

Thanks @_az. Just deleted everything and it should give me fresh start again?


#4

Yes, it should.

If you used the --nginx or --apache parts of Certbot, you will also need to manually make sure that your respective web server configurations aren’t still referencing anything from /etc/letsencrypt/ anymore.


#5

I see. Thanks much! (and more to get enough 20 :smile: )


#6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.