How quickly could your organisation replace RSA?
I built the smallest lab I could, two services and one CA, and counted where RSA is used. Most of it sits in parts I never configured, and some of it nobody owns.
There has been a lot of nervous anticipation as the rumors of the next AI led discovery in math are revealed. What exactly is in store for us this time is impossible to guess, but still guesses range from post-quantum cryptography not being safe post-quantum after all to the foundation of all modern cryptography being demolished in a second.
There’s good reason to pay attention, the latest events that have everyone on their toes are fascinating:
- Nov 25: Computer scientist Scott Aaronson reports hearing from reliable sources about undisclosed advances in cryptography and cryptanalysis at AI labs.
- Nov 29: The Cryptography Incident Review Group (CIRG), comprising 21 cryptographers, becomes public.
- Nov 30: Anthropic releases four research papers detailing AI-discovered advances in lattice-based cryptography.
- Dec 2: The NSA confirms that AI companies have privately disclosed discoveries affecting cryptographic systems currently in use. It urges operators of national security systems to accelerate their transition to post-quantum cryptography immediately.
- Dec 2: The UK NCSC responds to the NSA advisory the same day. It keeps its existing migration timelines, but urges organisations to act on them now, with the highest priority actions completed by 1 January 2031.
The NSA advisory is worth reading past the headline. Its list of actions starts with “Inventory cryptographic dependencies”, and its next steps open with “Step 1: Inventory your cryptographic dependencies.” That is exactly what this post attempts, for the smallest system I could build.
The recent events got me thinking. At any of the clients I have worked with the past decade, what would it actually look like if an asymmetric algorithm like RSA was all of a sudden no longer safe? How would an organization respond to such an event?
There would likely be panic as new certificates are issued with a new algorithm and all certs in the old chain of trust are replaced. Services having to restart to load new certificates, legacy systems not supporting the new certs. In other words it would be a nightmare unfolding and it would quickly become ungodly expensive. Like the recent PHP vulnerabilities for some companies and government agencies it would even be a race against time to patch any vulnerability before it’s too late.
What makes this even worse is that it is highly unlikely that any organization even knows how many places RSA is being used, and in most places no one has clear ownership of it. So I have come up with the following hypothesis; Given a deliberately small environment, can we say where RSA is used and what replacing it entails? Even with two services and one CA that we have created ourselves, most RSA usage will sit outside the parts we wrote, and some will have no clear owner.
So to test my hypothesis I have created a tiny sandbox environment. The smallest I could come up with that still is somewhat realistic. It lacks those 1-2 legacy systems and an old database and fileserver, but in its current state I still believe it proves my point.
The experiment consists of a Kubernetes cluster (running in Podman) and two small Go applications, a frontend and a backend. You can call the frontend on https and it will then call the backend too using an https request. All these are RSA 2048 certificates issued by an RSA 4096 root (openssl). So with two simple services and one CA it should be fairly simple to get an overview of your exposure to RSA right? Wrong.
The surrounding infrastructure in just this simple, and by comparison to most I see in reality modern, setup has 19 cryptographic dependencies. Of those 19 my conclusion is that 12 depend on RSA and would have to be replaced.
This post is not a prediction about quantum computers and post-quantum cryptography, nor that AI will be breaking the entire industry anytime soon. It is merely a thought experiment of how big of a challenge a fundamental flaw being revealed in central cryptography algorithms would be to mitigate and a reflection of how to position yourself to be more “crypto-agile”.
It also helps to keep three situations apart. RSA-2048 isn’t a security problem for this lab today, so nothing in it needs replacing this week. A planned migration to post-quantum algorithms is the second situation, and there you get to set the pace. The third is the one from the thought experiment, where RSA has to go because it’s no longer trusted. The inventory is the same in all three. What changes is how much time you have and, as I’ll get to, whether you can afford to keep trusting the old certificates while you replace them.
The lab: deliberately too small to hide anything
The full Lab can be found on GitHub. As mentioned it consists of a simple kind cluster:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:
# Frontend NodePort -> https://localhost:8443 on the host, loopback only.
- containerPort: 30443
hostPort: 8443
listenAddress: "127.0.0.1"
protocol: TCP
As a setup for this project I set up an RSA-4096 root certificate, the full generation of certs can be seen in the repo, but I’ll just go over it briefly here too.
openssl req -x509 -newkey "rsa:4096" -sha256 -noenc \
-keyout ca.key -out ca.crt -days "3650" \
-subj "/O=Crypto Agility Lab/CN=Lab Root CA 01 (RSA)" \
-addext "basicConstraints=critical,CA:TRUE,pathlen:0" \
-addext "keyUsage=critical,keyCertSign,cRLSign"
This is a pretty standard 4096 bit openssl certificate. We use this to generate two leaf certificates, these we set to 2048 bit certificates
openssl req -new -newkey "rsa:2048" -sha256 -noenc \
-keyout "${name}.key" -out "${name}.csr" \
-subj "/O=Crypto Agility Lab/CN=${name}"
openssl x509 -req -in "${name}.csr" -sha256 -days "90" \
-CA ca.crt -CAkey ca.key -CAcreateserial -out "${name}.crt" \
-extfile <(printf '%s\n' \
"basicConstraints=critical,CA:FALSE" \
"keyUsage=critical,digitalSignature,keyEncipherment" \
"extendedKeyUsage=serverAuth" \
"subjectAltName=${sans}")
These two leaf certificates are loaded into the Kubernetes cluster by hand - in this first experiment I deliberately keep everything as simple as possible. No cert-manager, no ingress-controller, no service mesh. I have created a probe that makes a fresh TLS handshake per request and records what was negotiated. The baseline test of this probe, just to verify the initial setup, is that 30 of 30 requests succeed and the 8 verification checks hold.
$ just verify
# positive
ok client trusting the lab CA gets HTTP 200
ok frontend -> backend TLS hop succeeds
ok TLS 1.3 handshake with RSA signature algorithms
ok TLS 1.2 with ECDHE key exchange is still accepted
# negative
ok client without the lab CA rejects the certificate
ok certificate is not valid for another hostname
ok client offering only ECDSA signature algorithms cannot connect
ok TLS 1.2 with static RSA key exchange is refused

“RSA” is not one thing
“Where do we use RSA?” sounds like a precise question. When I started writing down what I found in the lab it turned out to be far too coarse. RSA isn’t doing one job in a TLS connection, and some of the jobs I expected it to do, it isn’t doing at all. The list only started to make sense once I split it up by the role the algorithm plays, and I ended up with six:
- Certificate public key. The key the certificate vouches for.
- Certificate signature. How the issuer signed that certificate.
- Handshake signature. How the server proves during the handshake that it actually holds the private key.
- Key exchange. How the two parties agree on a session secret.
- Record protection. The symmetric encryption of the actual traffic.
- Token signature. How tokens (JWTs) are signed. Not part of TLS, but it lives right next door and it’s very easy to forget.
The first five can be read straight off a request from the probe to the frontend. The sixth can’t: no token is involved in that request, so I found it by inspecting the cluster instead. Put together it looks like this:

RSA shows up in four of the six. I’ll get back to the two where it doesn’t, because that surprised me more than anything else in the lab.
Most of the RSA isn’t mine
I went through the lab by hand and wrote down every cryptographic dependency I could find. The full list is in inventory.yaml and it has 19 entries. If RSA was disallowed tomorrow, 12 of them would have to change, 6 wouldn’t, and 1 (the TLS connection to the container registry) I simply didn’t inspect.
Of those 12, only 5 are in the workloads I built myself: the two service certificates, the root CA, the copies of that root and the handshake signature. The other 7 came with the platform. I didn’t ask for them and I didn’t configure them.
It gets clearer if you count certificates instead of inventory entries. I created 3. When kind bootstrapped the cluster, the platform quietly created 17 more, all RSA-2048. kubeadm wrote 15 of them: three CAs, the certificates they sign for the API server, etcd and the front-proxy, and five client certificates tucked into kubeconfig files. The kubelet generated the last two for itself, a serving certificate and a throwaway CA to sign it. On top of that, kubeadm created an RSA key that signs ServiceAccount tokens with RS256.

My first count was 12, by the way. A reviewer asked whether I’d looked inside the kubeconfig files on the node, and there were five more: the client certificates for the scheduler, the controller manager, the kubelet and a break-glass super-admin, plus the kubelet’s own little CA. I built this cluster, I had root on the node, and I still undercounted by almost a third on the first pass.
Here’s the full list, because “Kubernetes created some certificates” doesn’t help anyone assess their own cluster. Everything is RSA-2048 except my root, which is RSA-4096.
| Certificate | Issued by | Used for | Lifetime | Created by |
|---|---|---|---|---|
| Lab root CA | itself | Trust anchor for both services | 10 years | me, openssl |
| frontend | Lab root CA | Serving certificate, probe to frontend | 90 days | me, openssl |
| backend | Lab root CA | Serving certificate, frontend to backend | 90 days | me, openssl |
| Cluster CA | itself | Signs the API server and every client certificate | 10 years | kubeadm |
| kube-apiserver | Cluster CA | API server serving certificate | 1 year | kubeadm |
| kube-apiserver-kubelet-client | Cluster CA | API server to kubelet (logs, exec) | 1 year | kubeadm |
| kubernetes-admin | Cluster CA | Operator to API server, also copied into my kubeconfig | 1 year | kubeadm |
| kubernetes-super-admin | Cluster CA | Break-glass admin that bypasses RBAC | 1 year | kubeadm |
| kube-controller-manager | Cluster CA | Controller manager to API server | 1 year | kubeadm |
| kube-scheduler | Cluster CA | Scheduler to API server | 1 year | kubeadm |
| kubelet client | Cluster CA | Kubelet to API server | 1 year | kubeadm |
| etcd CA | itself | Signs everything that talks to etcd | 10 years | kubeadm |
| etcd server | etcd CA | etcd serving certificate | 1 year | kubeadm |
| etcd peer | etcd CA | etcd member to member | 1 year | kubeadm |
| etcd healthcheck client | etcd CA | Liveness probe against etcd | 1 year | kubeadm |
| kube-apiserver-etcd-client | etcd CA | API server to etcd | 1 year | kubeadm |
| front-proxy CA | itself | Signs the aggregation layer client | 10 years | kubeadm |
| front-proxy client | front-proxy CA | API aggregation layer | 1 year | kubeadm |
| kubelet serving CA | itself | Signs the kubelet serving certificate, nothing else | 1 year | kubelet |
| kubelet serving | kubelet serving CA | Kubelet serving certificate (logs, exec, metrics) | 1 year | kubelet |
The first three are mine to replace. The other 17 belong to whoever runs the platform, and that’s four separate trust hierarchies in a single-node cluster before any application is deployed.
Both of my services get a token signed with that key mounted into them, and neither ever uses it. That’s the default for every pod unless you turn it off with automountServiceAccountToken: false, which I hadn’t. Unused isn’t the same as absent, though. If RSA has to go, that key has to go too. Turning the mount off wouldn’t remove the signing key, but it would take my two services off the list of things holding something signed by it, and a dependency you’ve removed never needs migrating.
Now imagine walking up to the application team in a real organisation and asking where they use RSA. A competent team would answer for their 3 certificates, and they’d be right. They’d also miss the 18 things sitting underneath them, in a cluster that’s about as plain as Kubernetes gets.
Where RSA isn’t
I didn’t see this one coming. The key exchange on both hops was already hybrid post-quantum: the probe to frontend connection and the frontend to backend connection both negotiated X25519MLKEM768. I’d love to take credit for that, but I didn’t configure it anywhere. It has been the default in Go’s TLS library since Go 1.24, so it arrived with a routine toolchain upgrade (the lab is on 1.26), and OpenSSL 3.5 on my laptop picked it as well.
Before anyone gets too excited: the server still happily accepts plain X25519 or P-256 from a client that offers nothing else. So “already using post-quantum key exchange” only holds for clients that are new enough, and with the defaults the server takes what it’s offered.
I also tested the old way of doing things, static RSA key exchange over TLS 1.2, where RSA actually protects the session secret. The server refuses it. So RSA in this lab does authentication and nothing else: certificate signatures, handshake signatures and token signatures.
That changes what “replace RSA” means here. It’s certificates, trust anchors and a token signing key. Nothing in these connections uses RSA to protect the session keys, so a broken RSA wouldn’t let anyone decrypt traffic they had recorded earlier. It would let them forge a certificate and impersonate the frontend or the backend, though, and a man in the middle reads everything from then on. So the damage is to connections made after the break, while old recordings stay safe. That’s still a much smaller project than “all our encryption is broken”, and I wouldn’t have known without splitting the question by role first.
The downside is that a good default nobody chose is also a default nobody will notice changing. I got hybrid post-quantum key exchange for free with a Go version, and I could lose it, or get something else, the same way.
It also shows who sets the pace. My services, the Go toolchain, Kubernetes, the CA and whatever clients connect all get upgraded on their own schedules, by different people. Being able to change an algorithm in one of them only helps if the others are ready at the same time.
This is what openssl reports for the hop from my laptop to the frontend. A post-quantum hybrid group for the key exchange, and RSA for the signature:
$ openssl s_client -connect localhost:8443 -servername localhost \
-CAfile .lab/pki/ca.crt </dev/null 2>/dev/null \
| grep -E "Negotiated|Peer signature|Cipher is"
Peer signature type: rsa_pss_rsae_sha256
Negotiated TLS1.3 group: X25519MLKEM768
New, TLSv1.3, Cipher is TLS_AES_128_GCM_SHA256
The parts nobody owns
For every entry in the inventory I tried to write down an owner, meaning the role that could actually change it. For 4 of the 19 I couldn’t do that with a straight face, and I built the whole thing myself.
| Entry | What it is | Why nobody owns it |
|---|---|---|
| W-03 | The root CA | The private key is an unencrypted file on whichever laptop ran the script. In many organizations this can also come from a third party vendor or secure servers. |
| W-04 | Trust distribution | Every consumer holds its own copy of the root, and there is no list of consumers |
| W-06 | Key exchange | Library default, nobody decided on it |
| W-07 | Cipher selection | Library default, nobody decided on it |
In the lab these are a bit silly. The root CA is “owned” by me because I happened to run a script, and the copies of it live in a ConfigMap and a file path on my host. But they’re the small versions of questions I’ve seen go unanswered at real organisations. Who owns the internal CA? Who knows which clients have pinned it? Who decided which cipher suites we allow, or did they just come with the base image? If you can’t answer those for two services, I doubt it gets easier with two hundred.
There’s a second problem hiding in the word “owner”. I used it for the role that would make the change, but that assumes somebody upstream has made the change possible. For the cluster certificates the platform team can pick a different key algorithm because kubeadm documents a setting for it (I haven’t tried it). For an algorithm kubeadm doesn’t offer, they’d be waiting on the Kubernetes project, then on whoever packages their distribution, and only then could they deploy anything, with the application teams checking that their clients still connect. On a managed Kubernetes service or in a proprietary product, most of that chain sits outside the organisation entirely.
I have worked multiple projects where a root CA just ends up being OpenSSL run on a single laptop. I have also worked enough projects by now that I know expired certificates that clients didn’t know they had are a very common reason for outages even to this day. In other words many organizations have no overview of their certificates. At best there is a CMDB somewhere with some semblance of a list.
I also found something along the way that isn’t about RSA at all. It’s something I was expecting to find, and something any competent platform team running Kubernetes in production should be aware of. The TLS private keys for both services sit unencrypted in etcd, because the cluster has no encryption at rest configured. That’s the kind default, nothing I changed. I recorded it in the inventory as an absence of cryptography, because you’d never find it by looking for algorithms.

What replacing it would actually take
This section is an estimate, not a measurement. I haven’t migrated anything yet. The later parts of this series do the migration and measure it.
For the two workloads the path would look something like this:
- Create a new root CA with a different key type.
- Add the new root to every copy of the trust anchor, next to the old one.
- Restart the frontend so it picks up the new trust.
- Reissue the two leaf certificates from the new root.
- Update the two Secrets in the cluster.
- Restart both pods, since they only read their certificate once at startup.
- Remove the old root from every trust copy.
- Restart the frontend again.
That’s eight manual steps and four pod restarts in three rounds (the frontend three times, the backend once), for two services. The ordering matters too. Reissuing the leaf certificates early is harmless on its own. Putting them into the cluster and restarting (steps 5 and 6) before the new root has been distributed (steps 2 and 3) is what breaks it, because the frontend no longer trusts the backend. In the lab that costs me a failed curl. Do it in production and you’ve caused your own outage in the middle of an incident.
This is also the planned version. Steps 2 to 6 work because both roots are trusted for a while, which is exactly what you want in a migration with a date in the calendar. If RSA were actually broken, every minute the old root stays trusted is a minute someone can forge a certificate under it, so the overlap that makes the migration safe is the one thing you can’t afford. You’d be choosing between an outage and an exposure. I don’t have a good answer to that yet, and it’s what the last part of this series, the fire drill, is for.
Automated renewal wouldn’t change much of this either. A cert-manager setup could renew those two leaf certificates forever without anyone being able to change the CA’s algorithm or the roots the clients trust. You need renewal working before you can migrate, but it’s a different capability.
For the platform I have nothing tested. From reading the kubeadm documentation, the simple route is a new cluster with a different key algorithm. That’s one command on my laptop, and a migration project of its own anywhere people depend on the cluster.
There’s one thing I did measure. A client that only offers ECDSA signature algorithms can’t connect to the lab today; the handshake fails. That’s expected with RSA certificates, but turn it around: after a migration to ECDSA, a client that only speaks RSA fails in exactly the same way. The server keeps no record of which clients exist, so I can’t tell you up front who would break.

What I couldn’t see
The inventory was compiled by me, the person who built the lab, with full access to everything, using a pile of ad hoc commands that included exec’ing straight into the Kubernetes node. That’s the best case, and it still only lists what I thought to look for.
Some of what’s missing I can at least name:
- The handshake signature on the internal hop is inferred. Go doesn’t expose it, so I’m assuming it matches what openssl showed me on the external hop.
- The certificate count is what I found, not what exists. It already grew from 12 to 17 once.
- Certificate rotation wasn’t inspected. I know the kubelet’s client certificate exists now. I don’t know how or when it gets replaced.
- I never opened the node image. containerd, the CNI and CoreDNS are in there, and I can’t tell you whether they bring cryptographic dependencies of their own.
- Image signatures aren’t verified anywhere. Nothing checks who actually published the images I’m running.
- The inventory records presence, not consequence. A forged backend certificate, a forged cluster CA and a forged token signing key are very different incidents, and nothing in my list says which is which.
- Registry transport, session resumption and the disk encryption on my own laptop I didn’t look at.
The evidence has limits too. This is one machine, a single-node cluster and one run of 30 requests. The latency numbers in the repo show that the probe works. They aren’t a benchmark.
So the manual inventory answers the question for a system this small, barely, and with a list of known holes. None of it is repeatable, and I wouldn’t want to do it by hand for anything bigger.
Try it on your own environment
You don’t need my lab to get something out of this. What you can reuse is the six roles from earlier, plus six columns to fill in for every dependency you find.
| Column | What goes in it |
|---|---|
| Purpose | What the dependency is there to do |
| Algorithm | What is actually in use, split by role |
| Evidence | Observed, declared in configuration, or inferred |
| Owner | The role that can change it, or an explicit gap |
| Replacement path | What changing it takes, and whether that has been tested |
| Lifetime | When it expires, and whether renewal is automated |
Four more columns aren’t in the lab’s inventory yet: where the dependency came from (origin), who consumes it, how bad it is if it’s forged or lost (criticality), and whether a replacement has actually been tried (migration readiness). They were suggested in review.
If a full inventory sounds like too much, start with three questions:
- Which of our certificates did we choose, and which arrived with a platform?
- For each trust anchor, where are the copies?
- Which cryptographic settings are defaults that nobody decided on?
I’d be surprised if you can answer all three without having to go and ask someone, and even more surprised if that someone knows. I asked a version of this after KubeCon last year (“Do you know where your certificates are used?”), and this lab is me finding out how hard it is to answer for the smallest system I could build.
If you want to poke at the lab yourself, everything is in the experiment directory. It runs locally and needs no cloud account:
just up # create cluster, build image, generate PKI, deploy
just verify # 4 positive and 4 negative checks
just probe 30 # 30 requests, fresh handshake each
So, how quickly?
So, how quickly could your organisation replace RSA? For my lab the answer is that I don’t know yet. Finding the dependencies took one person with full access to a system with two services, and out of that came 19 dependencies: 12 tied to RSA, 7 of those from a platform I never configured, and 4 that nobody owns.
My lab is also the easy case. No real organisation runs on a bare Kubernetes cluster with two Go services. I’d expect old databases, Windows and Linux VMs, .NET Framework applications, Java on WildFly or JBoss, Active Directory and LDAP, all of it older than the cluster and most of it more important. Each of those keeps its keys and trusted roots somewhere different: a Java keystore on one server, the Windows certificate store on the next, a file somebody copied into place by hand on a third. In the lab I could exec into the node and read everything, and I still miscounted. Out there, some of those systems belong to a vendor and some can’t be upgraded to an algorithm they’ve never heard of, and for those, replacing RSA means replacing the system, or at least a long conversation with the supplier.
Scale the lab up to that, and you’re mostly asking whether you know what you’re running and who’s responsible for it. In this lab the new cryptography was already there, since the hybrid key exchange arrived with a toolchain upgrade. Finding out what I was running, and who’d have to change it, is what took the work.
The weak spot in all of this is that I did the inventory by hand. In the next part, You can’t migrate what you can’t see, I’ll try to discover the same inventory automatically and compare the result against today’s manual list, to see how much of it a tool can find and what it misses.