Security for startups

Post-Quantum Migration for App Teams: What to Change

Eight big tech companies want post-quantum migration now. What an app team changes this week, the version floors, and a TLS check I ran on my own site.

In this post
  1. What is post-quantum cryptography?
  2. The swap is two migrations
  3. Check where your TLS ends
  4. Version floors for the hybrid default
  5. Your app as a client
  6. Signatures, certificates and JWTs
  7. Crypto agility
  8. What to do first
  9. Questions for your vendors
  10. What to watch

On December 2, Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle put out a joint statement. It says they “strongly support the guidance issued by the U.S. government urging organizations to move to the algorithms in the National Institute of Standards and Technology (NIST) Post-Quantum Cryptography (PQC) standards and to accelerate the migration as soon as possible.”

The government statement behind it, from the ONCD, NSA and CISA, is calmer. It says recent advances “do not present an immediate and widespread threat.” It also says companies have disclosed discoveries that affect “some cryptography currently in use,” and it doesn’t name what they are. Separately, Anthropic published four lattice papers on November 30. Their README says the algorithms are “not practical for the parameter sets of ML-KEM and ML-DSA.” No source I read says those papers are the discoveries the government means. I’m not claiming any algorithm is broken, and nobody has published a break.

On December 3, Cloudflare moved its own deadline to be fully post-quantum from 2029 to 2027. Its post says “We are accelerating that plan to complete the work next year, 2027.”

My read for an app team: move key exchange now, because it is mostly upgrades and config. Plan for signatures and certificates, because the ecosystem isn’t ready for them. I also checked my own site, and it isn’t post-quantum yet. That check is below, and it’s why I wrote this instead of waiting for a cleaner story. If you want the rumor background first, I covered it in the RSA-2048 rumor post.

What is post-quantum cryptography?

It is a set of algorithms that a quantum computer shouldn’t be able to break the way Shor’s algorithm breaks RSA and elliptic curves. NIST finalized three in August 2024: ML-KEM (FIPS 203) for key exchange, ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) for signatures. NIST’s IR 8547 recommends ML-KEM-768 as the default parameter set.

What you’ll see deployed is hybrid: X25519 and ML-KEM-768 run together and both secrets feed the session key. If ML-KEM turned out to be weak, you’d still have X25519, so a hybrid is no weaker than what you run today. The TLS name is X25519MLKEM768, standardized in RFC 10024 in August 2026. AES and SHA-2 stay as they are.

The swap is two migrations

Key exchange protects what’s being sent. Someone can record your traffic today and decrypt it later, which is the harvest now, decrypt later problem. IR 8547 describes it as adversaries collecting encrypted data “with the goal of decrypting it once quantum technology matures.” The fix is a hybrid key exchange, and for most stacks that means a library or runtime upgrade and sometimes one config line.

Signatures prove identity: certificates, JWTs, code signing, SSH host keys. An attacker can’t go back and impersonate you in a session that already happened, so the risk starts on the day someone can forge a signature. The switch has to be done before that day, but the work is much bigger. Chrome’s February post says there is “no immediate plan to add traditional X.509 certificates containing post-quantum cryptography to the Chrome Root Store”. It points at Merkle Tree Certificates instead. Cloudflare’s roadmap has it ready to issue MTC certificates in Q1 2027, and Let’s Encrypt is targeting production MTCs in 2027. So the browser-facing certificate your app uses won’t change this month.

Cloudflare says 73% of human traffic to it is already post-quantum encrypted, per its December 1 post. Those connections still use classical certificates to prove who is on the other end. That is the split in practice.

Check where your TLS ends

I did this on my own site. sublimecoding.com runs on Fly.io. The response headers show server: Fly/9bb2ac9a88 (2026-11-23) and via: 2 fly.io, so TLS terminates at Fly’s edge, not in the Phoenix app. Whatever my app’s runtime supports, the key exchange that matters for visitors is whatever Fly’s proxy supports.

To test it, I offered only the hybrid group:

openssl s_client \
  -connect sublimecoding.com:443 \
  -servername sublimecoding.com \
  -groups X25519MLKEM768 </dev/null

It ended with tls alert handshake failure (SSL alert number 40). With the default offer, the handshake settled on Peer Temp Key: X25519, 253 bits. So today my site’s key exchange is classical X25519. I haven’t migrated anything.

To make sure the check could pass at all, I ran the same command against cloudflare.com. It printed Negotiated TLS1.3 group: X25519MLKEM768. My client was OpenSSL 4.1.1 (1 Dec 2026), and I ran all of this between 18:54 and 19:05 UTC on December 3.

To run it on your own domain, use that command with your hostname. If it fails, repeat it without -groups and read the Peer Temp Key line to see what you do get. Do it for every public hostname, since your CDN, API and marketing site may terminate in different places. OpenSSL’s s_client docs list the -groups option. On macOS 26 and later, Apple documents nscurl --tls-diagnostics https://your.host and tells you to look for X25519MLKEM768 in its support note.

I found no Fly documentation saying its edge proxy supports X25519MLKEM768. There is a community forum thread from July 9 asking whether Fly has a roadmap for post-quantum readiness on its edge proxy. It was auto-closed on July 20 with no staff reply on the page.

The lesson I take from it: the layer that matters is wherever TLS terminates, and I can’t fix that from app code. My options are to wait for the host, put a proxy that supports the hybrid group in front of Fly, or terminate TLS myself. I haven’t picked one yet.

Version floors for the hybrid default

These are the versions where the hybrid group is offered by default, or where I could only verify the building blocks. “On by default” means a TLS client or server built on it offers X25519MLKEM768 without you configuring anything.

Stack Version Status
OpenSSL 3.5.0 (Apr 2025) On by default; 3.5 is LTS to Apr 2030
Go 1.24 On by default in crypto/tls; tlsmlkem=0 reverts
Java JDK 27 Hybrid TLS 1.3 key exchange delivered (JEP 527)
Node.js 24.5.0, 22.20.0 On by default (via OpenSSL 3.5)
Python cryptography 48.0.0 ML-KEM and ML-DSA APIs with OpenSSL 3.5+
.NET 10 MLKem, MLDsa APIs; needs OpenSSL 3.5+ on Linux
rustls 0.23.27 On by default
Erlang/OTP 29 Hybrid preferred by default in ssl and ssh
OpenSSH 10.0 mlkem768x25519-sha256 is the default
Chrome 131 Default hybrid
iOS and macOS 26 TLS connections advertise it automatically

Some notes on gaps. For Python, I expect the ssl module to follow the OpenSSL it links against, but I didn’t confirm that in Python’s docs. Python 3.15 does add set_groups() and group() so you can set and read the group. For .NET I verified the APIs but not whether SslStream negotiates the hybrid. For servers, Cloudflare’s support table lists nginx as default when compiled with OpenSSL 3.5 or later, and Caddy as default since 2.10.0. Envoy’s documented default curves in non-FIPS builds are X25519 and P-256, so check yours.

One more gotcha: the hybrid key share makes the ClientHello bigger. OpenSSL’s docs warn that a large ClientHello may break behind bad middleboxes. If handshakes start failing after an upgrade, that is the first thing I’d suspect.

Your app as a client

Your app makes TLS connections too: payment APIs, webhooks, your database, an LLM provider. Those are all key exchanges, and you control the client side.

Here is the worked example from my own stack. The site runs Erlang/OTP 29.1.2, the version pinned in its Dockerfile and .tool-versions. In iex:

:ssl.groups(:default)

It returns x25519mlkem768 first, then x25519, x448, secp521r1, secp384r1, secp256r1, and a few more. crypto:supports() lists the KEMs mlkem512, mlkem768, mlkem1024. So the app’s outbound HTTPS, which goes through Req and Erlang’s :ssl, offers hybrid key exchange first, and I did nothing to turn that on. OTP 29 shipped on May 18, 2026. On an older OTP, upgrading to 29 is how you get that default.

Offering it and getting it are different things. The connection only goes post-quantum if the server at the other end supports the group, and some managed databases and third-party APIs may not offer it. Check yours. AWS says its KMS, ACM and Secrets Manager endpoints support hybrid ML-KEM TLS. Cloudflare’s docs say edge-to-origin connections support it, and its Zero Trust docs say the origin leg is post-quantum only if the origin supports it. Test the endpoints that carry long-lived secrets first, using the same openssl s_client command.

My OpenSSH is 10.6p2, and ssh -Q kex lists mlkem768x25519-sha256 and mlkem768nistp256-sha256. Per the release notes, OpenSSH 10.1 added a warning when a connection falls back to a non-post-quantum key agreement, and 10.6 added the matching log line on the sshd side. I wrote about keeping OpenSSH current in the sshhole post.

Signatures, certificates and JWTs

I already listed where RSA lives in an app in the rumor post, so I won’t repeat the inventory. This is what I’d do about it now.

JWTs. Verify against an explicit algorithm allow-list and a kid-based key set. Then switching algorithms is a config change and a key rotation. RFC 9964 registered ML-DSA for JOSE and COSE in May 2026, with entries in the IANA JSON Web Signature algorithm registry, so the spec exists. What you need is a JWT library that ships it and verifiers that accept it. Until then, don’t hand-roll an ML-DSA token format. Cloudflare’s roadmap puts post-quantum JWT support in its interfaces in Q2 2027.

Certificates. Keep your certificate automation working, so a post-quantum certificate is a reissue and not a project. The standards pieces exist: RFC 9881 covers ML-DSA in X.509. The browser side is the gap, per the Chrome note above. If your certificate renewal is already a manual calendar reminder, fix that first. I wrote up what a CA problem looks like for an Elixir app in the eMudhra post, including that Req reads CAs from the OS first, so bumping castore often does nothing.

Code signing. Status is thin. Microsoft documents that AD CS can issue ML-DSA code signing certificates through templates. Sigstore describes its ML-DSA move as in progress, and I found no confirmed production ML-DSA signing there. I’d inventory what you sign and who verifies it, and leave it at that for now.

KMS support is further along. AWS KMS has ML_DSA_44, 65 and 87 key specs, and Google Cloud KMS went GA with ML-DSA, SLH-DSA and ML-KEM in July.

Crypto agility

Put algorithm names in config, one place per concern. One module picks the JWT algorithm, one picks the TLS groups, one holds the signing key set. If RS256 shows up in twelve files, you have twelve migrations.

Then run a rotation drill before you need one. Rotate a signing key in staging and see what breaks. Rotation is also much easier when credentials are scoped small. I laid out the broker pattern for that in the agent secrets post, and it applies to any service key you’d have to swap in a hurry.

What to do first

Order by what an attacker could record today and still care about in ten years.

  1. Long-lived secrets in transit. Database dumps, backups, bulk exports, anything with regulated or personal data. Check those connections first.
  2. Internet-facing TLS at your edge or CDN. Run the check above against every hostname. This is the leg Cloudflare’s 73% figure measures, and it’s where your host decides for you.
  3. Service-to-service traffic inside your network. Upgrade runtimes and libraries to the floors in the table. Most of it needs no code change.
  4. Signatures, as your vendors and libraries ship support.

If you’d like a second pair of eyes on that inventory, I do this kind of review as a fractional CISO and CTO for small AI teams. It’s on the consulting page.

Questions for your vendors

Ask your CDN, load balancer, managed database, auth provider and KMS the same few things:

  • Does your edge negotiate X25519MLKEM768 today, and on which products?
  • Is it on by default, or do I need to change a policy? On AWS, ALB and NLB only offer the hybrid on a security policy with PQ in its name. The console defaults to a PQ policy, but the CLI, CloudFormation and CDK default to the non-PQ ELBSecurityPolicy-2016-08. Google Cloud’s load balancers have had the hybrid on by default since October 2026 when no SSL policy sets it.
  • Does it cover the leg to my origin or database, or only the client-facing side?
  • When will you issue post-quantum certificates, and which type: ML-DSA X.509 or Merkle Tree Certificates?
  • Can your auth provider sign and verify JWTs with a non-RSA algorithm, and what’s the key rotation story?

A vendor that answers with a date and a product name is ahead of one that answers with a link to a general security page.

What to watch

I’m watching four things:

  • Cloudflare being ready to issue Merkle Tree Certificates, which its roadmap puts at Q1 2027.
  • Whether a JWT library you use ships ML-DSA, and when verifiers start accepting it.
  • Whether your host’s edge adds the hybrid group. I’ll recheck mine and update this post if Fly publishes anything.
  • Whether anyone publishes what the government’s “discoveries” were.

If you read one more thing, read the RSA-2048 rumor post for the background on what is and isn’t known.