The deletion of your directory /etc/letsencrypt has no effect on already issued certificates.
Also, revocation of already issued certificates has no effect on the rate limit of 5 certificates per domain per sliding window of 7 days. (But without a backup of your /etc/letsencrypt you can’t even revoke the certificate )
You should test and/or experiment with the --staging or --test-cert switch of the official Let’s Encrypt client. It generates fake certificates, but has less strict rate limits. When you’re satisfied with all the options of the client, you can drop the --test-cert switch, so it generates a good certificate.
Correct. If you remove the folder /etc/letsencrypt, you won’t have the certificate anymore (and, more importantly, you also won’t have the corresponding private key to revoke the certificate), but every single certificate you’ve issued in the past will be online and shared with the whole world on http://crt.sh. But that last part you knew already, I hope
Ofcourse, if you’ve deleted your directory, you can download the certificate again from crt.sh, but it will be useless for your server without its private key. So don’t delete /etc/letsencrypt unless you’ve made a backup of it.
Hi @Chipie678, just as a reminder, as other people mentioned, revoking the certificates won’t affect the rate limit, so if you can’t get a certificate because too many have already been issued, you still won’t be able to do it after revoking an existing certificate.
You can find out the content of an existing certificate by running
openssl x509 -in cert.pem -text -noout
(which will show you, for example, who issued it, when it expires, and what domains it applies to - the subject alternative names), and you can see if a private key corresponds to the subject public key in an existing certificate by running