Skip to main content
December 4, 2026

Post-Quantum TLS: The 5-Minute Fix and the Years-Long Part

Post-Quantum TLS: The 5-Minute Fix and the Years-Long Part

Is post-quantum TLS a five-minute server setting? Half of it is. Turning on the hybrid key exchange X25519MLKEM768 in TLS 1.3 protects traffic that someone records today and tries to decrypt later, and on a server linked against OpenSSL 3.5 it is often already on by default. The other half, stopping a future attacker who forges your certificates, needs post-quantum signatures (ML-DSA) in your certificate chain. That is a certificate authority migration, and nobody finishes it in an afternoon. This guide shows which part is which, and how to prove what your endpoint actually negotiates.

Why This Came Up Now

On December 2, 2026, the Office of the National Cyber Director, the NSA and CISA published a joint statement. It says recent advances in AI frontier models ("Super Intelligence (SI)" in the statement) "do not present an immediate and widespread threat" to deployed cryptography, and it asks industry and government to work together to "expeditiously upgrade" their digital infrastructure. The next day Cloudflare published Cloudflare will be fully post-quantum in 2027 and moved its own deadline from 2029 to 2027.

The Cloudflare post makes the same split this guide makes. It says 73% of browser-generated connections to Cloudflare are already post-quantum, but "those connections still use classical certificates to prove who's on the other end." Encryption is mostly done. Authentication is the new schedule.

Two Threats, Two Fixes

Record now, decrypt later. An attacker stores your encrypted traffic today and waits for a quantum computer. TLS 1.3 already has forward secrecy: RFC 8446 says "Static RSA and Diffie-Hellman cipher suites have been removed; all public-key based key exchange mechanisms now provide forward secrecy." So a stolen RSA or ECDSA server key does not unlock recorded sessions. But the ephemeral X25519 exchange is in the recording, and a large quantum computer could solve it. The fix is a hybrid key exchange that adds ML-KEM. The IETF registered X25519MLKEM768 as code point 0x11EC in RFC 10024 (August 2026). It stays secure as long as either half holds.

Forged identity. An attacker with a quantum computer derives a CA or server private key from its public key, then signs certificates and impersonates you in real time. Key exchange does not help here. You need post-quantum signatures, ML-DSA (FIPS 204), in certificates that clients trust. The OpenSSH project puts it simply: for signatures, "there is no risk to existing traffic," and "the only urgency for signature algorithms is ensuring that all classical signature keys are retired in advance."

Record now, decrypt later Forged certificate
Attacker Passive, today and later Active, after a quantum computer exists
Past traffic at risk Yes No
Fix Hybrid key exchange X25519MLKEM768 ML-DSA or Merkle Tree Certificates
Who changes You: TLS library and server config Your CA, every client trust store, you
Effort Config change, upgrade at worst Multi-year CA project
Proof Negotiated group in a handshake Signature algorithm in the chain

Step 1: Check Which Group Your Endpoint Negotiates

You need an OpenSSL 3.5 or newer client. The OpenSSL 3.5 release notes say the default TLS keyshares "have been changed to offer X25519MLKEM768" alongside X25519. Check with openssl version, then run:

openssl s_client -connect example.com:443 -servername example.com -brief </dev/null 2>&1 \
  | grep -E 'group|Temp Key'

With -brief, OpenSSL prints the summary on stderr. On a post-quantum endpoint you see:

Negotiated TLS1.3 group: X25519MLKEM768

That line comes from ssl_print_tmp_key() in OpenSSL's apps/lib/s_cb.c. A group name without MLKEM, or a Peer Temp Key: line, means the session used classical key exchange.

To test what the server supports, not just what it picked, force one group:

# Must succeed on a post-quantum endpoint
openssl s_client -connect example.com:443 -servername example.com -groups X25519MLKEM768 -brief </dev/null

# Must still succeed for older clients
openssl s_client -connect example.com:443 -servername example.com -groups X25519 -brief </dev/null

Browsers do the same. Cloudflare's client support list shows X25519MLKEM768 as the default in Chrome and Edge 131+, Firefox 132+ on desktop, and Safari 26+.

Step 2: Turn It On in nginx

nginx itself does nothing special. It uses the groups of the OpenSSL it was built with. Cloudflare's list says nginx negotiates the hybrid by "Default when compiled with OpenSSL 3.5+". First check the build:

nginx -V 2>&1 | grep -i openssl

If that shows OpenSSL 3.5 or newer and ssl_ecdh_curve is unset or auto, you are probably done; confirm with Step 1. The nginx docs say auto "instructs nginx to use a list built into the OpenSSL library", and in OpenSSL 3.5 that list starts with X25519MLKEM768. If your config pins a list, put the hybrid first and keep classical groups for old clients:

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;

Then log what clients really negotiate. $ssl_curve exists since nginx 1.21.5 and needs OpenSSL 3.0 or later:

log_format tls '$remote_addr $ssl_protocol $ssl_curve "$http_user_agent"';
access_log /var/log/nginx/tls.log tls;

Depending on the build, the hybrid shows up as X25519MLKEM768 or as its code point 0x11ec, as in nginx issue 288. Count the share of TLS 1.3 requests per group. That number, per host, is your real coverage.

The same idea applies to SSH. OpenSSH 10.0 made mlkem768x25519-sha256 the default key agreement, and 10.1 warns when a session "may be vulnerable to 'store now, decrypt later' attacks."

Step 3: Start the Certificate Track

This is the years-long part. For public sites there is no nginx setting to flip: even Cloudflare's post-quantum connections "still use classical certificates". What you can do:

  • Know the size problem. Let's Encrypt notes that an ML-DSA-44 signature is "roughly 2,420 bytes long", and that swapping today's five signatures and two public keys for ML-DSA "would push a single TLS handshake well past 10 kilobytes." That is why the Web PKI is moving to Merkle Tree Certificates. Let's Encrypt targets "late 2026 for a staging environment that issues MTCs, and 2027 for a production-ready environment." Cloudflare plans its first MTCs in early 2027.
  • Inventory every CA you own. Internal CAs for mTLS, service mesh, VPN and SSH are yours to migrate. ML-DSA identifiers for X.509 are standardized in RFC 9881, and OpenSSL 3.5 supports ML-DSA, so a private CA can test it now.
  • Rank by key lifetime. A root that lives 20 years matters more than a 90-day leaf.
  • Test the clients. Every probe, proxy, SDK and appliance that parses your chain has to accept the new algorithm and the bigger handshake.

We covered the Web PKI roadmap in post-quantum certificates for SREs and the earlier deadline in Cloudflare's 2029 post-quantum deadline.

Checklist

Config change (this week):

  • Client tooling has OpenSSL 3.5+ (openssl version).
  • Every TLS terminator (nginx, load balancer, ingress, CDN) is built with a TLS library that supports X25519MLKEM768.
  • No pinned ssl_ecdh_curve list leaves out the hybrid.
  • Step 1 shows Negotiated TLS1.3 group: X25519MLKEM768 on every public endpoint.
  • $ssl_curve is in the access log, with a dashboard of groups per host.
  • TLS 1.3 is enabled: post-quantum key agreement only exists in TLS 1.3.

CA project (quarters to years):

  • List of every CA, its key algorithm, its lifetime and its relying clients.
  • Private CA test with ML-DSA in staging.
  • Client compatibility matrix for larger chains.
  • Plan for public certificates that tracks MTC and your CA's roadmap.
  • Retirement date for each classical root.

Troubleshooting

nginx: [emerg] SSL_CTX_set1_curves_list("X25519MLKEM768:X25519:prime256v1") failed. The OpenSSL nginx links to does not know the group. nginx -V shows the build version. Upgrade to a package built with OpenSSL 3.5+, or remove the pinned list.

s_client reports X25519, not the hybrid. Either your client is older than OpenSSL 3.5 and never offered it, or the server does not support it. Rerun with -groups X25519MLKEM768: a handshake failure means the server side.

Some clients time out after you enable it. The post-quantum ClientHello is bigger. tldr.fail explains that "a single call to TCP read() might not return the entire ClientHello", and that most buggy servers are not prepared to call read() more than once. Look at TLS passthrough proxies and inspection boxes between the client and the terminator.

$ssl_curve is empty. The request was plain HTTP, or nginx is built with OpenSSL older than 3.0, which the variable needs.

Cloudflare returns 525 to your origin. Cloudflare's origin docs say that if you require "Post-quantum hybrid" and the origin cannot do it, "Cloudflare returns a 525 error." Use the default automatic key exchange until the origin passes Step 1.

Keeping the Report Current

The config track is a one-off per host, but hosts drift: a new ingress, an old appliance, a rebuilt image with an older library. An Akmatori cron job can run the Step 1 checks on a schedule and post a per-host table of negotiated groups to a channel on every run, so you can compare runs and catch a host that falls back to a classical group. It reaches hosts through the SSH connector, which is read-only by default. The CA track stays a long-running task in that same report.

Conclusion

Post-quantum TLS key exchange is a short job: upgrade to OpenSSL 3.5, leave X25519MLKEM768 in the group list, and prove it with s_client and $ssl_curve. That closes record-now, decrypt-later. Forged certificates need ML-DSA or Merkle Tree Certificates and a CA migration, so start the inventory now and keep both tracks in one report.

If your team wants AI-assisted incident workflows on your own infrastructure, Akmatori helps SRE teams investigate alerts, coordinate response, and track TLS changes across the fleet. Powered by Gcore for global infrastructure reliability.

Automate incident response and prevent on-call burnout with AI-driven agents!