# Multiple certificate revocations for domains

**URL:** <https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125>\
**Category:** Help\
**Created:** [March 10, 2021, 10:27pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125 "2021-03-10T22:27:04Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![h4ckd0wn](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/h4ckd0wn/32/47966_2.png) [@h4ckd0wn](https://community.letsencrypt.org/u/h4ckd0wn)\
**Post date:** [March 10, 2021, 10:27pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/1 "2021-03-10T22:27:04Z")

</div>

Hi, would it be possible to obtain mass revocations of all SSL certificates issued under my domains?  
My server recently got compromised. (I wiped it off, but didn't think of taking out /etc/letsencrypt beforehand so I can't revoke them, and I don't see all of them on crt.sh to do the "revocation from another account" method)

My domains are [necord.com](http://necord.com) and [pinnoto.org](http://pinnoto.org).

My web server is Nginx 1.19

The operating system my web server runs on is Debian 10 Buster

I can login to a root shell on my machine (yes or no, or I don't know): yes

The version of my client is (e.g. output of `certbot --version` or `certbot-auto --version` if you're using Certbot): 1.12.0

---

<div class="post-metadata">

**Author:** ![JamesLE](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jamesle/32/49364_2.png) [@JamesLE](https://community.letsencrypt.org/u/JamesLE)\
**Post date:** [March 10, 2021, 10:38pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/2 "2021-03-10T22:38:21Z")

</div>

Yes, here are instructions on how to do that:

> **[Revoking certificates - Let's Encrypt - Free SSL/TLS Certificates](https://letsencrypt.org/docs/revoking/#using-a-different-authorized-account)**
>
> Last updated: Feb 22, 2020 | See all Documentation When a certificate’s corresponding private key is no longer safe, you should revoke the certificate. This can happen for a few different reasons. For instance, you might accidentally share the...

This is the best and easiest way to prove you are in control of the domain(s), which is necessary for revocation.

---

<div class="post-metadata">

**Author:** ![h4ckd0wn](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/h4ckd0wn/32/47966_2.png) [@h4ckd0wn](https://community.letsencrypt.org/u/h4ckd0wn)\
**Post date:** [March 10, 2021, 10:40pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/3 "2021-03-10T22:40:04Z")

</div>

but I have more than a hundred of them to revoke  
and yes, I obviously took a look at that page  
I have to revoke approximately 90 of them on [necord.com](http://necord.com)  
and another 90 on [pinnoto.org](http://pinnoto.org)

---

<div class="post-metadata">

**Author:** ![JamesLE](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jamesle/32/49364_2.png) [@JamesLE](https://community.letsencrypt.org/u/JamesLE)\
**Post date:** [March 10, 2021, 10:47pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/4 "2021-03-10T22:47:31Z")

</div>

Hmm, I think you could achieve these revocations pretty quickly by retrieving copies of the certificates from Certificate Transparency logs (for example, using [http://crt.sh/](http://crt.sh/)) and then feeding them to `certbot revoke` with a `for` loop in `bash` or similar. Not very elegant, but it will get the job done.

```nohighlight
for certfile in *.crt; do
  certbot revoke --reason keycompromise --delete-after-revoke --cert-path $certfile
done

```

---

<div class="post-metadata">

**Author:** ![h4ckd0wn](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/h4ckd0wn/32/47966_2.png) [@h4ckd0wn](https://community.letsencrypt.org/u/h4ckd0wn)\
**Post date:** [March 10, 2021, 11:05pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/5 "2021-03-10T23:05:24Z")

</div>

but these are often unique subdomains though  
I really have to validate each of them?  
it's weird that I can't revoke a certificate with just a single domain that I authorized  
I can only imagine in cases where revocation is impossible because someone issued a fraudulent certificate with both the domain name they want to target and their own

---

<div class="post-metadata">

**Author:** ![JamesLE](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jamesle/32/49364_2.png) [@JamesLE](https://community.letsencrypt.org/u/JamesLE)\
**Post date:** [March 10, 2021, 11:11pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/6 "2021-03-10T23:11:07Z")

</div>

You can revoke in such cases, but you'll still need to make an API call for each certificate.

---

<div class="post-metadata">

**Author:** ![h4ckd0wn](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/h4ckd0wn/32/47966_2.png) [@h4ckd0wn](https://community.letsencrypt.org/u/h4ckd0wn)\
**Post date:** [March 10, 2021, 11:12pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/7 "2021-03-10T23:12:48Z")

</div>

that I understand but I'm talking about certificates for which I only control some SANs

---

<div class="post-metadata">

**Author:** ![rmbolger](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rmbolger/32/27474_2.png) [@rmbolger](https://community.letsencrypt.org/u/rmbolger)\
**Post date:** [March 11, 2021, 12:24am UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/8 "2021-03-11T00:24:28Z")

</div>

Ultimately, if you don't have the original account key, you don't have the cert private key, and you can't validate ownership of the names in the cert, you won't be able to revoke the cert _via ACME_. The protocol just doesn't support any other methods of revocation. Human intervention is required and I don't know if Let's Encrypt has any standard procedures to deal with a situation like that.

With a non-ACME CA, presumably there would be some sort of web or email based account verification procedure that effectively takes the place of the ACME account key. But it's still likely going to be a human assisted process.

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [March 11, 2021, 7:18am UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/9 "2021-03-11T07:18:07Z")

</div>

> [@rmbolger](#):
>
> Human intervention is required and I don't know if Let's Encrypt has any standard procedures to deal with a situation like that.

If I recall correctly, a CA has its own responsibility with these situations. If a CA "learns" that a certain certificates private key has been compromised, as far as I know most if not all root certificate stores require the CA to take action.

I don't know if LE has something written in their CPS which would exonorate them from these kinds of clausules from root certificate stores?

That said, the CA would need some kind of proof of course.. Otherwise everybody could claim the private key for the certificate of $high\_profile\_site has been compromised.

---

<div class="post-metadata">

**Author:** ![JamesLE](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jamesle/32/49364_2.png) [@JamesLE](https://community.letsencrypt.org/u/JamesLE)\
**Post date:** [March 11, 2021, 7:25am UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/10 "2021-03-11T07:25:41Z")

</div>

> [@Osiris](#):
>
> If a CA "learns" that a certain certificates private key has been compromised, as far as I know most if not all root certificate stores require the CA to take action.
> 
> That said, the CA would need some kind of proof of course..

That's exactly right. We ask subscribers to do self-service revocation if _at all_ possible; we're a small team, and our mission depends on automation. If there's no alternative, then we can manually validate and revoke, as required.

---

<div class="post-metadata">

**Author:** ![h4ckd0wn](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/h4ckd0wn/32/47966_2.png) [@h4ckd0wn](https://community.letsencrypt.org/u/h4ckd0wn)\
**Post date:** [March 11, 2021, 2:06pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/11 "2021-03-11T14:06:48Z")

</div>

Well it's not very practical to validate each SAN in a certificate to revoke it

---

<div class="post-metadata">

**Author:** ![rmbolger](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rmbolger/32/27474_2.png) [@rmbolger](https://community.letsencrypt.org/u/rmbolger)\
**Post date:** [March 11, 2021, 4:46pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/12 "2021-03-11T16:46:49Z")

</div>

Why not? You had to validate each SAN in order to get the cert in the first place. What's the difference?

---

<div class="post-metadata">

**Author:** ![h4ckd0wn](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/h4ckd0wn/32/47966_2.png) [@h4ckd0wn](https://community.letsencrypt.org/u/h4ckd0wn)\
**Post date:** [March 13, 2021, 2:27pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/13 "2021-03-13T14:27:40Z")

</div>

having to manually validate each SAN with DNS especially with dozens of them is highly unpractical

---

<div class="post-metadata">

**Author:** ![h4ckd0wn](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/h4ckd0wn/32/47966_2.png) [@h4ckd0wn](https://community.letsencrypt.org/u/h4ckd0wn)\
**Post date:** [March 13, 2021, 2:28pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/14 "2021-03-13T14:28:03Z")

</div>

anyway I think I'll just let them expire  
too bad for me I guess  
I enabled DNSSEC as a temporary stopgap

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [March 13, 2021, 3:23pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/15 "2021-03-13T15:23:05Z")

</div>

> [@JamesLE](#):
>
> If there's no alternative, then we can manually validate and revoke, as required.

Could you perhaps help @h4ckd0wn out? As I understand it now, he/she is having trouble revoking the certs. Or isn't practically able to.

---

<div class="post-metadata">

**Author:** ![JamesLE](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jamesle/32/49364_2.png) [@JamesLE](https://community.letsencrypt.org/u/JamesLE)\
**Post date:** [March 13, 2021, 9:49pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/16 "2021-03-13T21:49:54Z")

</div>

> [@h4ckd0wn](#):
>
> having to manually validate each SAN with DNS especially with dozens of them is highly unpractical

It sounds like HTTP-01 validation won't work in your setup - is that right? Then if DNS-01 is your best option, many ACME clients (including Certbot) are able to use your DNS provider's API to manage validation records. Could that work for you?

There will be a little setup involved: getting your client set up to use the API, and writing a loop to validate control of all the hostnames, then revoke. We can help you with all of this here.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [April 12, 2021, 9:50pm UTC](https://community.letsencrypt.org/t/multiple-certificate-revocations-for-domains/147125/17 "2021-04-12T21:50:10Z")

</div>

Closed on April 12, 2021, 9:50pm UTC

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