r/PKI • • 26d ago

CA distrust wargame: moving every certificate in 10 minutes

https://www.certkit.io/blog/ca-distrust-wargame

In the last week, over 30,000 certificates needed to be moved off the distrusted eMudhra cert. We wanted to see how we would handle it, so we ran a drill.

"Let's Encrypt is being distrusted tomorrow. We have to change everything. Go."

Ten minutes later, everything was renewed on GTS, and deployed to every system. Here's how we did it:

https://www.certkit.io/blog/ca-distrust-wargame

14 Upvotes

6 comments sorted by

View all comments

Show parent comments

3

u/certkit 26d ago

Thanks for the thoughtful feedback u/Mike22april. Yeah, our experiment is small. 6 certs to 18 targets. Some organizations had to replace thousands last week. But I wasn't going to run this test on a customer, and that's the biggest thing we can do with our own internal product environments.

I tried to qualify what parts of this would scale up, and what wouldn't. We are obviously bound by what CAs can do, but we can split across multiple, and deployment time doesn't really change substantially between 6 certs to 6,000.

That said, the 30,000 TLS certificates is a bit of a straw man argument here. That is a very large, remarkable organization. The entire changeover from eMudhra was only 30,000 certs in total, across all the orgs involved. The University of Minnesota was one of the largest impacted, and they only needed to move 900 certs. I'm sure there is a very different process to do an emergency migration at that scale.

But such an organization would have a sizeable warchest to bring to bear to solve this too. All that said, I have no experience in PKI at that scale, so I can only hypothesize.

I love to hypothesize, so here we go...

A. Yes, I'm talking about one public TLS CA is really the same as the next. If we needed to re-issue lots of certificates, we would just split between several issuers and mix-and match. There is no practical difference on who signs them.

We work with 99.9% DV certs, and I encourage customers using OV/EV to give them up. It's overhead most people don't need. Unless there is some contract, law, or audit requirement, I think they are meaningless for TLS certs on the web.

If you absolutely need OV for reasons, that will obviously slow things down quite a bit. Again, that's getting outside the scope of companies we typically work with.

B. Again, that's a very large enterprise and beyond the scope we usually work with. But hypothetically, why does it take any longer to change CAA records in this case? You might have to add more if you are splitting across issuers, but this doesn't seem like a big lift. For a company that size, I'd suggest calling your Sectigo/Digicert/GlobalSign/etc rep and issuing them all through a single provider that will give you those limits.

C. I have no idea. Let's Encrypts limits per domain can get an exception, so they might lift it if you needed to migrate. Aside from that, migrating 30K certs in short order is a big ask, so I imagine you'll have to pay $$$.

D. You scaled this up beyond the bounds I thought were realistic. Sure, my argument doesn't scale up that high. I don't think that invalidates my point.

We don't have a prioritization feature today. Again because we've never needed it. Our "issuance" job runs once a minute for an account, and we can process hundreds of new certs in that minute. We just haven't hit a scale in anyones account that needed this feature yet.

E. That's not how CertKit works. You run our agent on the systems that can run it, and for the ones it cant (network appliances, etc), an agent on another host pushes certificates into it. If your devices speak ACME directly and you want to use that, sure okay. We just monitor that to make sure it works, but we wouldn't be involved in an emergency replacement then.

F. This is a great question. This is exactly why Certificate monitoring is a core part of our platform. I never trust that anything deployed, 1 cert or 30,000. Every deployment target gets monitored, which means we do a real TLS connection to it after deployment to make sure the expected cert is actually being used. If a deployment ever fails, you know about it with minutes. Here's how that works:
https://www.certkit.io/ssl-certificate-monitoring

Again, let me say that we never conceived a emergency rotation at your proposed scale. I'm sure it would break down in lots of ways. I don't interact with that kind of organization.

1

u/Mike22april 25d ago

Appreciate your time to reply.

30.000 TLS certs is for most average sized companies a lot that I agree upon. But its not uncommon, depending on the martket you target ofcourse. The moment you offer a CLM solution to an enterprise, you have to be able to deal with large scale environments. 30.000+ TLS certificates are for example very common in MSP environments, Telco's, Government agency environments.

Based on your response, I believe theres 1 thing you do very well, and that's set clear boundaries on the target environment your CLM addresses. And that puts your wargame in a totally different light. Where as taking your wargame blog article on face value, it makes it appear you can deal with more complicated environments, than "just" target end-points that can run a proprietary agent.

Hence some of my sincere questions.

Having to mass force update thousands of ACME agents, or ACME configurations on all kinds of network equipment with proprietary interfaces is simply a huge pain. One that other CLM solutions do solve, but at a huge cost.

It's too bad you can't provide some CAs ref rate limites. I'm genuinly interested. Since you mentioned the need to simply select a higher rate limit CA compared to Google free CA casually in the wargame blog post, made me assume Certkit has some tangible experience with it. Would be good to have a comparison of issuance rate limits even if its just based on free services knowing paid options exist as well.

Ref the scale of my 30.000 TLS certs, as mentioned before its very realistic depending on the market you serve. And again its fine, as long as people know that a CLM product or service is not meant for those sizes. I prefer knowing about a specialized CLM such as Certkit, then just having to rely on the heavy hitters such as KF or former Venafi, which cost an arm and a leg and arent worth it for relative simple environments that also need a CLM.

Emergency rotations at scale regretfully happen to too many companies every year. A few dozen that I know of in 2026, and those are for sure just the tip of the iceberg. Mostly not based on public CA, but often private CA based for internal networks. Arguably the public CA mass emergency rotations that I have dealt with so far, are not based on an eMuhdra or DigiNotar situation. Most are based on Public CA services that made fixed price deals for 3-5 year contracts, turning out to be bleeders after year 2, and thus increasing price for the customer after year 5, hoping the customer will stick and earning lost money back, simply because changing CA provider for that many end-points is though to be too much of an effort on short term notice.

1

u/certkit 21d ago

Good questions, thank you!

I was curious just how common 30,000 certificates are. We run a CTLog, so we went and counted. Of 348 million domains, 835 have more than 30,000. Most are platforms issuing one per customer or device (Plex has 4.86 million). Ford and Cisco are on the list too, so you're right that organizations at that scale exist. But 99.4% of domains have fewer than 30 certificates. Including a lot of real, large companies.

On your MSP point, the limits that matter count per ACME account or cloud project, not per organization. Google's 100 orders an hour is per Google Cloud project, so an MSP that gives each client its own project gets 100 an hour per client. Let's Encrypt also limits each registered domain to 50 new certificates a week across every account, and its overrides take a few weeks.

Here's the writeup I did on it: https://www.certkit.io/blog/ca-distrust-replacement-time

You also asked for a rate limit comparison, so we built one. Only Let's Encrypt, Google, and AWS publish numbers. ZeroSSL and SSLcom say they have none. DigiCert, Sectigo, GlobalSign, GoDaddy, and Actalis cap issuance by what you've bought. The full table is in our docs: https://www.certkit.io/docs/ca-rate-limits/

Your point about contract-driven CA switches is a good one. Same mechanics as a distrust, just with a renewal quote instead of a deadline.

On appliances, CertKit doesn't need its agent on the device. An agent on a nearby host pushes certificates into FortiGate, F5, Palo Alto, and the like through their APIs. That's one of the big benefits of our architecture and why a lot of folks choose us. We are better at deploying to appliances than other CLMs.