SecurityIntermediate

Post-Quantum Cryptography Migration: A 2026 Playbook

DeveloperHat Team
16 min read

TL;DR

NIST finalized ML-KEM, ML-DSA and SLH-DSA in August 2024, and RSA is deprecated after 2030. Here is the migration order that actually works.

The quantum computer that breaks RSA-2048 does not exist yet, and that is exactly why the migration has already started. An attacker does not need a quantum computer today. They need a hard drive: record encrypted traffic now, store it for a decade, and decrypt it the day a capable machine arrives. That is the "harvest now, decrypt later" attack, and it turns every long-lived secret you transmit today into a future breach.

The standards are no longer the blocker. NIST finalized the first three post-quantum standards in August 2024, your browser has been negotiating a hybrid post-quantum key exchange by default for over a year, and the deprecation dates for RSA and elliptic-curve cryptography are now written down: deprecated after 2030, disallowed after 2035. The work that remains is unglamorous — inventory, upgrade, test — and the order you do it in matters more than the speed.

The short version: turn on hybrid TLS key exchange first, because it is mostly a configuration change and it closes the harvest-now window. Then inventory where cryptography actually lives in your systems, because you cannot migrate what you cannot find. Migrate signatures last, because the certificate ecosystem is still catching up. And build crypto agility into every change, because ML-KEM will not be the last algorithm you deploy.

Harvest now, decrypt later The attack needs no quantum computer today — only a recording. Traffic recorded TLS sessions captured Stored for years cheap disk, no rush Decrypted later quantum computer The deadline is your data lifetime a 10-year secret recorded in 2026 is already at risk No quantum computer is needed today. The recording is the attack.

Why the threat is already here

Public-key cryptography has two jobs, and a sufficiently powerful quantum computer breaks both. Shor's algorithm, published in 1994, factors large integers and solves discrete logarithms exponentially faster than any classical method — which is the entire security basis of RSA, Diffie-Hellman, ECDH, ECDSA, and EdDSA. Symmetric cryptography is different: NIST's transition guidance considers AES and the SHA-2 and SHA-3 families adequate against quantum attacks at 128 bits of classical security and above, so there is no symmetric migration to plan. The migration is a public-key migration, full stop.

Three dates frame the work. NIST finalized FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), and FIPS 205 (SLH-DSA) on 13 August 2024, ending an eight-year standardization competition that began with a public call in December 2016. Then, on 27 October 2026, NIST published the final version of IR 8547, Transition to Post-Quantum Cryptography Standards, which sets the retirement schedule for the old algorithms: RSA, ECDSA, EdDSA, and Diffie-Hellman in all their forms are deprecated after 2030 and disallowed under NIST standards after 2035 — at every key size, not just the weak ones. The draft had only deprecated 112-bit parameters such as RSA-2048; the final version extends deprecation to everything, including RSA-3072, P-256, and Ed25519.

The federal deadlines arrive sooner. The NSA's CNSA 2.0 suite requires ML-KEM-1024 for key establishment and ML-DSA-87 for signatures on National Security Systems, and the procurement gate lands on 1 January 2027: from that date, new acquisitions for those systems must support CNSA 2.0. Equipment that cannot support it must be phased out by 31 December 2030, and the algorithms become mandatory across the board by 31 December 2031, with the full transition aimed at 2035. Those dates bind National Security Systems directly, but they set the pace for everyone else — vendors build to the strictest buyer, and the strictest buyer just published a calendar.

None of this requires believing a cryptographically relevant quantum computer arrives on a particular date. The harvest-now attack makes the timeline irrelevant: data recorded in 2026 with a ten-year secrecy life is already exposed if a quantum computer appears any time before 2036. Medical records, financial data, trade secrets, state secrets — anything that must stay confidential for years is the thing to protect first, and it is the thing most teams have not yet inventoried.

The standards, settled

The three finalized standards split the work cleanly. ML-KEM (FIPS 203) is the key-encapsulation mechanism: it lets two parties agree on a shared secret over a public channel, replacing ECDH and RSA key transport. ML-DSA (FIPS 204) is the general-purpose signature scheme, replacing ECDSA and RSA signing. SLH-DSA (FIPS 205) is a second signature scheme built only on hash functions, with no lattice assumption — the conservative hedge, for long-lived, low-volume signing such as firmware and roots of trust, where you can absorb a large signature in exchange for a different mathematical bet.

Two more algorithms are in the pipeline and are worth tracking, not deploying. NIST selected HQC, a code-based KEM, as a fifth algorithm on 11 March 2025 — a deliberate backup on different mathematics, so a breakthrough against lattices would not take down the whole suite — with its draft standard expected around 2027. FN-DSA, derived from FALCON, is a compact signature scheme whose draft standard (FIPS 206) is not yet final. Neither is a deploy-today decision; both are reasons to build systems that can swap algorithms without a rewrite.

The sizes are the first thing that surprises engineers, because post-quantum keys and signatures are dramatically larger than the ones they replace:

AlgorithmJobStandardDefault parameter setPublic keySignature / ciphertext
ML-KEMKey establishmentFIPS 203ML-KEM-7681,184 B1,088 B ciphertext
ML-DSASignaturesFIPS 204ML-DSA-651,952 B3,309 B signature
SLH-DSASignatures (conservative)FIPS 205varies32–64 B7,856–49,856 B signature
RSA-2048 (for scale)Both——~294 B256 B signature

A 1,184-byte public key is roughly four times an RSA-2048 public key, and an ML-DSA signature is roughly thirteen times an RSA signature. Those numbers drive most of the practical migration pain: bigger handshakes, bigger certificates, bigger JWTs, and middleboxes that were never tested with a ClientHello over 1,500 bytes. Keep them in mind — they are the reason the migration is a testing exercise, not just a version bump.

The options

Option 1: Hybrid TLS key exchange now

A hybrid key exchange runs a classical exchange and a post-quantum encapsulation in the same handshake and mixes both secrets, so an attacker has to break both halves to recover the session key. The deployed group is X25519MLKEM768 — X25519 plus ML-KEM-768 — and it is already the default almost everywhere you look. Chrome has shipped it by default since version 131 (November 2024), after running the draft form since version 124; Firefox followed in version 132, and Apple added it across iOS 26 and macOS Tahoe. The IETF finalized the standard as RFC 10024 in August 2026, which closed the standards gap for teams whose compliance process would not accept an experimental code point.

The deployment numbers are striking. Cloudflare reported that by October 2025, a majority of human-initiated TLS traffic to its network was already negotiating a hybrid post-quantum key exchange, and by April 2026 that figure was over two-thirds. The other side of the connection has barely moved: one analysis updated in July 2026 put origin-server support in the single digits, around 3.7%. Your browser negotiates post-quantum key exchange with the edge, and the edge talks to the origin over a connection that is very often still classical. The front door is quantum-safe; the back corridor is not.

For most teams this is a configuration change, not a project. OpenSSL 3.5, released 8 April 2025 as a long-term-support release supported through April 2030, ships native ML-KEM, ML-DSA, and SLH-DSA and offers X25519MLKEM768 as a default TLS key share — no external provider or patch required. If your edge terminates TLS on a modern load balancer, CDN, or OpenSSL 3.5, turning the hybrid on is the highest-value line in this article. Verify it the same way you would verify anything: openssl s_client -connect example.com:443 -groups X25519MLKEM768 -brief tells you in seconds whether your server answers.

One caveat for regulated teams: the FIPS-validated OpenSSL module is still the pre-quantum 3.1.2 release, and the 3.5 module was submitted for FIPS 140-3 validation in October 2025 with the certificate still pending. Open-source availability and FIPS-validated availability are two different dates — check which one binds you before promising a timeline.

Pick this first, always. It closes the harvest-now window on your most exposed surface, it is reversible, and the hybrid construction means a flaw in the new algorithm does not leave you worse off than the classical exchange you already trusted.

Option 2: Crypto inventory and crypto agility

You cannot migrate what you cannot find, and cryptography hides everywhere: TLS libraries, JWT signing keys, SSH host keys, code-signing certificates, database encryption, VPNs, IoT firmware, third-party SaaS integrations, and the libraries your dependencies quietly bundle. The inventory — sometimes called crypto discovery — is the phase teams skip and then regret, because the long tail of forgotten keys is where migrations stall.

The deliverable is a list, not a document: every place a quantum-vulnerable public-key algorithm is used, what it protects, how long that data must stay secret, and who owns the system. Sort by secrecy lifetime, not by ease — the ten-year medical record outranks the thirty-day session token. Our data encryption guide covers the at-rest side of this inventory, and the secrets hygiene guide covers the key-handling discipline that a migration will stress-test.

Crypto agility is the design principle that makes the inventory pay off twice. It means the algorithm is a configuration choice, not a hardcoded assumption: keys are stored with their algorithm identifier, protocols negotiate rather than assume, and swapping ML-KEM for its successor is a deployment, not a rewrite. The HQC selection is the concrete reason: NIST has already told you a fifth algorithm is coming on different mathematics. If your code assumes one KEM forever, you will pay for this migration twice.

Pick this second, in parallel with Option 1. It is the only option that makes the rest of the migration plannable, and it is the one auditors will ask for first.

Option 3: Migrate signatures — ML-DSA, and SLH-DSA where it fits

Signatures are the harder half, and they lag key exchange by design. A signature proves identity, so changing it means changing certificates, trust stores, and every verifier in the chain — not just the two ends of a connection. As of late 2026, the signature side has not reached publicly trusted TLS certificates, and the browser and CA ecosystem is still working through how ML-DSA certificates will be issued and validated. That is normal for a change of this size; it is also why signatures are step three, not step one.

One job each — pick by what the key does Finalized 13 August 2024. KEMs agree keys; signatures prove identity. ML-KEM · FIPS 203 Key establishment replaces ECDH ML-KEM-768 default 1,184 B public key ML-DSA · FIPS 204 Signatures replaces ECDSA / RSA ML-DSA-65 3,309 B signature SLH-DSA · FIPS 205 Signatures hash-based only 7.8–49.9 KB sigs firmware / roots ML-KEM is the workhorse. ML-DSA is the default signature. SLH-DSA is the hedge.

ML-DSA is the default choice: lattice-based, fast, with signatures of 2,420 to 4,627 bytes depending on parameter set, and ML-DSA-65 the common middle choice. It replaces ECDSA and RSA signing across code signing, JWTs, and document signatures. SLH-DSA is the conservative alternative: stateless, built only on hash functions, but with signatures from roughly 8 KB to 50 KB — reserve it for long-lived, low-volume signing such as firmware and roots of trust, where the hedge against a lattice break is worth the size. Note that CNSA 2.0 explicitly excludes SLH-DSA from National Security Systems use, so if you sell into that world, ML-DSA is the signature — at the ML-DSA-87 parameter set.

Start where signatures are self-contained and you control both ends: internal code signing, internal service-to-service JWTs, and firmware signing pipelines. Public-facing certificates wait for the CA ecosystem. Our AWS security best practices guide covers the signing and key-management controls this work sits on top of.

Pick this third, and sequence it by control: what you sign yourself first, what the public PKI signs for you last.

Option 4: Wait and do nothing

This is a legitimate option for a narrow set of teams: no data with a secrecy lifetime beyond a few years, no regulated customers, no federal contracts, and no public-facing services worth harvesting. A consumer app whose tokens expire in an hour and whose data is public anyway has little to protect from a harvest-now attack.

It is not a legitimate option by default. "Wait" has to be a decision recorded with its reasoning — which data was assessed, what its secrecy lifetime is, and when the decision gets revisited — not the absence of a decision. The 2030 deprecation date is the outer bound for everyone; the harvest-now window is the real bound for anyone with long-lived data. If you choose to wait, put a review date on it: the next NIST or CNSA update, or the next time a customer asks for your migration plan, whichever comes first.

The comparison

OptionWhat it fixesEffortRisk if delayedDo it when
Hybrid TLS nowHarvest-now on the wireLow — config changeRecorded traffic decrypted laterNow, for everyone
Crypto inventory + agilityUnknown exposure, future swapsMedium — discovery workMigration stalls on forgotten keysIn parallel with TLS
Migrate signaturesIdentity forgery, code trustHigh — certificates, verifiersForged signatures after quantumAfter key exchange; self-signed first
WaitNothingNone2030 deprecation, customer pressureOnly with short-lived, public data

Trade-offs

Size breaks things that size never broke before. An ML-KEM-768 public key is 1,184 bytes, and a ClientHello carrying it can exceed a single network segment — the first message of a TLS connection stops fitting in one packet. Most modern stacks handle this fine, but older middleboxes, load balancers, and packet-inspection devices were never tested with handshakes this large, and a small fraction of handshakes fail. Cloudflare's own rollout hit this: under a third of a percent of origin handshakes failed on the split ClientHello, fixed with a HelloRetryRequest dance that advertises the post-quantum group while sending only a classical key share first. Test your own edge against real middleboxes before you declare victory, and keep the classical fallback working — the hybrid exists precisely so a failure in one half is not a failure of the connection.

Certificates get heavy. An ML-DSA certificate chain carries multi-kilobyte signatures at every level, and a full chain can run to tens of kilobytes. That is fine for a browser on broadband and a problem for constrained devices, embedded TLS stacks, and anything that parses certificates in a fixed-size buffer. If you run IoT fleets or embedded clients, budget for a certificate-size audit before you touch signatures.

Hybrid is a hedge, not a compromise. Running both algorithms costs a larger handshake and a second code path to maintain, and some teams ask why they should not switch to pure ML-KEM and be done with it. The answer is that the new algorithms are young: ML-KEM has had two years of production cryptanalysis as a standard, against decades for X25519. The hybrid means a break in either half alone does not expose you, and it keeps the connection inside existing FIPS 140 validation, since the classical half remains an approved scheme. Pure post-quantum is the destination; hybrid is how you get there without betting the company on a two-year-old standard.

The federal timeline and your timeline are different documents. CNSA 2.0 binds National Security Systems, not your startup — but if you sell to anyone who sells to the government, the January 2027 procurement gate will reach you through a questionnaire long before it reaches you through a regulation. Answer the questionnaire with the inventory from Option 2, not with a promise.

Recommendation

Where do you start? Ask about secrecy lifetime The harvest-now test decides the order — not the hype cycle. Data secret 5+ years? health · finance · state secrets Yes → hybrid TLS now X25519MLKEM768 No → inventory first crypto discovery Regulated → CNSA 2.0 Jan 2027 gate Key exchange first — signatures follow once certificates catch up.

For most teams, the order is fixed: hybrid TLS first, inventory in parallel, signatures last. Turn on X25519MLKEM768 on every TLS-terminating surface you control this quarter — it is a configuration change on OpenSSL 3.5 or any modern edge, and it is the only step that retroactively protects traffic already recorded. Run the crypto inventory at the same time, sorted by data secrecy lifetime, and make every change crypto-agile so HQC or FN-DSA can slot in later without a rewrite. Then migrate signatures where you control both ends, and wait for the public CA ecosystem to catch up before touching public certificates.

If you sell into government or regulated industries, the same order applies — it just has a deadline attached: the CNSA 2.0 procurement gate on 1 January 2027, the phase-out of non-supporting equipment by 31 December 2030, and mandatory use by 31 December 2031. Start with the inventory, because that is what the auditors will ask for, and make sure your answers cite the standards — FIPS 203, FIPS 204, FIPS 205 — rather than the pre-standard names Kyber and Dilithium, which are now outdated.

Whatever you choose, stop saying "Kyber" in new documents. The deployed, standardized algorithm is ML-KEM, and the name matters when a customer or auditor checks whether you are tracking the standard or the competition entry.

When not to migrate yet

Do not migrate signatures on public-facing certificates until the CA ecosystem supports them — issuing a certificate nobody's trust store validates is worse than waiting. Do not rip out classical algorithms in a pure post-quantum switch; the hybrid exists because the new algorithms are young, and dropping the classical half removes your safety net. Do not start with the exotic surfaces — IoT firmware, constrained devices, legacy VPNs — before the mainstream ones are done; the exotic surfaces have the hardest size constraints and the least tooling, and they will consume a migration budget that should have gone to TLS first.

And do not treat this as a one-time project with an end date. NIST has already selected a fifth algorithm, the FN-DSA draft is still open, and the history of cryptography is a history of algorithms being replaced. The migration ends when your systems can change algorithms cheaply, not when ML-KEM is deployed.

What to do next

This week, check your own front door. From a terminal with OpenSSL 3.5 or later, run openssl s_client -connect yourdomain.com:443 -groups X25519MLKEM768 -brief and see whether your server answers with the hybrid group. In Chrome, open DevTools, go to the Security tab, and read the connection details on your own site — if it says X25519MLKEM768, your edge is already doing it and your origin probably is not.

Then start the inventory: list every place a public-key algorithm is used, note the secrecy lifetime of the data it protects, and sort by that lifetime. Our data encryption guide covers the at-rest half of that list, the zero-trust architecture guide covers the network segmentation that limits what a harvest-now attacker can reach, and the secrets hygiene guide covers the key handling that a migration will put under strain — start there if your keys are still scattered across repos and chat logs.

Why This Matters

Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

Trade-offs to Consider

Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

When NOT to Use This

Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

Decision Framework

Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

Share this articleShare on XShare on LinkedIn

Keep the decision frameworks coming

One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.