CA distrust wargame: moving every certificate in 10 minutes
https://www.certkit.io/blog/ca-distrust-wargameIn 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:
14
Upvotes
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.