On December 2 the NSA published six immediate actions for post-quantum cryptography, and the second one lands on the desk of anyone who runs a web server: move to TLS 1.3 with a key exchange that is meant to survive quantum computers. For most sites that is one line of server config, and often it is already switched on. We checked nine well-known hosts for post-quantum TLS and ran nginx locally with three different profiles. Seven of the nine already negotiate the hybrid key exchange X25519MLKEM768. GitHub and Amazon do not. The harder work sits elsewhere, in certificates.
What the NSA means by “Immediate Actions”
The NSA press release is formally addressed to owners and operators of National Security Systems, meaning US government and military networks. It gives two reasons for the urgency. Leading AI companies have disclosed “recent discoveries” to the government that affect some cryptographic systems in use today, and that comes on top of the familiar quantum computing concern. Adversaries, the agency says, are already collecting encrypted traffic to decrypt it later, a pattern known as harvest now, decrypt later. The release does not say what the AI companies found. We covered what it means for Bitcoin in our crypto update for December 4.
The accompanying advisory, “Immediate Actions to Push Toward Post-Quantum” (PP-26-4956, version 1.0), orders its steps by reach. First comes an inventory of which systems use which algorithms for key establishment, signatures and certificates. Then TLS servers and load balancers, then new certificate authorities, replacing certificates and code signatures, software and firmware updates, and finally isolating whatever cannot be fixed yet. Web developers can act on the first two today. The rest depends on vendors and certificate authorities.
Why post-quantum TLS starts with the key exchange
The order is not arbitrary. An attacker who records TLS traffic today only has to break the key exchange later to read it. A signature only has to be valid at the moment the connection is set up, so someone who can forge a certificate ten years from now gains nothing from old recordings. That is why the key exchange is worth fixing now, while certificates can wait a little longer.
RSA and elliptic-curve Diffie-Hellman rest on math problems a large enough quantum computer could solve efficiently. ML-KEM, which NIST standardized as FIPS 203 under its former name CRYSTALS-Kyber, is built on lattice problems for which no efficient quantum algorithm is known. KEM stands for key encapsulation mechanism: the client sends a public key, the server wraps a secret with it and returns the ciphertext. The signature counterpart is ML-DSA from FIPS 204, formerly CRYSTALS-Dilithium.
How X25519MLKEM768 works in the handshake
Since August 2026 the hybrid key exchange has been standardized as RFC 10024. Hybrid means both algorithms run side by side and their outputs are combined, so the connection stays secure as long as either one holds. If ML-KEM turns out to be weak, you are no worse off than with plain X25519 today. The RFC defines three groups: X25519MLKEM768 (code point 0x11EC), SecP256r1MLKEM768 (0x11EB) and SecP384r1MLKEM1024 (0x11ED). Only the first is marked “Recommended: Y” in the IANA registry. The old experimental Kyber code points are now deprecated.
The cost is bytes on the wire. With X25519MLKEM768 the client sends 1,216 bytes of key material instead of 32, and the server answers with 1,120. In our local test the ClientHello grew from 294 to 1,470 bytes and the ServerHello from 122 to 1,210. Add record and TCP/IP headers and the ClientHello no longer fits into a single 1,500-byte packet. Firewalls and middleboxes that only inspect the first packet can choke on that, so test before you roll it out.
A quick inventory script
The NSA wants the inventory first. For public web servers, OpenSSL 3.5 or later is enough, because it knows the new groups. To check a single host:
echo | openssl s_client -connect example.com:443 -servername example.com \
-groups X25519MLKEM768 -brief 2>&1 | grep -E "Protocol|group"
If the output says “Negotiated TLS1.3 group: X25519MLKEM768”, the hybrid exchange is live. For several hosts we wrote a small Python script. It forces the hybrid groups, TLS 1.2 and TLS 1.1 in turn and reads the certificate’s key type:
#!/usr/bin/env python3
"""Inventory: which TLS version, which key exchange group, which certificate?
Needs OpenSSL >= 3.5 (knows X25519MLKEM768). Usage: python3 pqc_tls_check.py host1 host2 ..."""
import subprocess, sys, re
def probe(host, *args):
cmd = ["openssl", "s_client", "-connect", f"{host}:443", "-servername", host, "-brief", *args]
try:
r = subprocess.run(cmd, input=b"", capture_output=True, timeout=15)
except subprocess.TimeoutExpired:
return None
out = (r.stdout + r.stderr).decode(errors="replace")
return out if "CONNECTION ESTABLISHED" in out else None
def field(out, name):
m = re.search(rf"^{name}: (.+)$", out or "", re.M)
return m.group(1).strip() if m else "-"
def group(out):
# OpenSSL 3.5 reports hybrid groups as "Negotiated TLS1.3 group", classic ones as "Peer Temp Key"
g = field(out, "Negotiated TLS1.3 group")
return g if g != "-" else field(out, "Peer Temp Key").split(",")[0]
def cert_key(host):
pem = subprocess.run(["openssl", "s_client", "-connect", f"{host}:443", "-servername", host],
input=b"", capture_output=True, timeout=15).stdout
txt = subprocess.run(["openssl", "x509", "-noout", "-text"], input=pem, capture_output=True).stdout.decode()
alg = re.search(r"Public Key Algorithm: (\S+)", txt)
bits = re.search(r"Public-Key: \((\d+) bit\)", txt)
curve = re.search(r"NIST CURVE: (\S+)", txt)
return f"{alg.group(1) if alg else '?'} {bits.group(1) if bits else '?'} {curve.group(1) if curve else ''}".strip()
print(f"{'Host':22} {'Default group':16} {'Hybrid 768':10} {'P384+1024':9} {'TLS1.2':6} {'TLS1.1':6} Certificate")
for h in sys.argv[1:]:
dflt = probe(h, "-groups", "X25519MLKEM768:X25519:secp256r1:secp384r1")
hyb = probe(h, "-groups", "X25519MLKEM768")
p384 = probe(h, "-groups", "SecP384r1MLKEM1024")
t12 = probe(h, "-tls1_2")
t11 = probe(h, "-tls1_1", "-cipher", "DEFAULT@SECLEVEL=0")
yn = lambda x: "yes" if x else "no"
print(f"{h:22} {group(dflt):16} {yn(hyb):10} {yn(p384):9} {yn(t12):6} {yn(t11):6} {cert_key(h)}")
Our run on December 4 at 10:50 CET with OpenSSL 3.5.9 produced this:
Host Default group Hybrid 768 P384+1024 TLS1.2 TLS1.1 Certificate
code404zero.com X25519MLKEM768 yes no yes no id-ecPublicKey 256 P-256
cloudflare.com X25519MLKEM768 yes no yes no id-ecPublicKey 256 P-256
google.com X25519MLKEM768 yes no yes no id-ecPublicKey 256 P-256
github.com X25519 no no yes no id-ecPublicKey 256 P-256
wordpress.org X25519MLKEM768 yes no yes no id-ecPublicKey 256 P-256
letsencrypt.org X25519MLKEM768 yes no yes no id-ecPublicKey 256 P-256
www.bsi.bund.de X25519MLKEM768 yes no yes no rsaEncryption 4096
www.nsa.gov X25519MLKEM768 yes no yes no rsaEncryption 2048
amazon.com X25519 no no yes no rsaEncryption 2048
Cloudflare, Google, WordPress.org, Let’s Encrypt and code404zero.com behind the Bunny CDN all negotiate X25519MLKEM768, and so do Germany’s BSI and the NSA itself. GitHub and Amazon fall back to plain X25519. None of the hosts still accepts TLS 1.1, all of them still speak TLS 1.2, and none offers SecP384r1MLKEM1024. Not a single certificate uses a post-quantum algorithm either. They are all ECDSA on P-256 or RSA at 2,048 or 4,096 bits.
nginx: one line makes the difference
In nginx the support comes from the linked OpenSSL library, not from nginx itself. We unpacked the nginx 1.26.3 package from Debian 13 and ran it against OpenSSL 3.5.9. With the ssl_ecdh_curve directive left at its default of “auto”, nginx uses OpenSSL’s built-in list, and that list already contains X25519MLKEM768. A client offering the hybrid group got it without any config change. That explains why so many servers have quietly made the switch without anyone touching their config.
The trap is an old explicit list. If you copied “X25519:prime256v1:secp384r1” from a config generator years ago, you are excluding the hybrid group even though the library supports it. An explicit config that puts the new group first looks like this:
server {
listen 443 ssl;
ssl_certificate /etc/ssl/example/fullchain.pem;
ssl_certificate_key /etc/ssl/example/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
# hybrid group first, classic groups as fallback
ssl_ecdh_curve X25519MLKEM768:X25519:secp384r1;
}
Run nginx -t, reload, and verify with the command above. We also tried a strict profile closer to the NSA’s CNSA thinking, allowing only SecP384r1MLKEM1024 and secp384r1. A client offering only X25519MLKEM768 and X25519 failed with a handshake error. The default OpenSSL client got through, but needed a second round trip, a so-called HelloRetryRequest, and ended up on classic secp384r1 with no post-quantum part at all. For a public website that profile is worse than the default.
If you run nginx you should be on a current build anyway. Our piece on NGINX2Root and the HTTP/2 flaws lists the recent bugs. SSH belongs in the inventory too, and our article on OpenSSH 10.6p2 shows how to check versions quickly.
Go and other applications
Go has shipped X25519MLKEM768 in the crypto/tls defaults since 1.24, and Go 1.26 added SecP256r1MLKEM768 and SecP384r1MLKEM1024. You can only turn this off on purpose, with GODEBUG set to tlsmlkem=0 or tlssecpmlkem=0. Our test client on Go 1.27.3 with an empty tls.Config got X25519MLKEM768 from code404zero.com out of the box. If you write Go backends, the thing to look for is a hard-coded CurvePreferences list from years past. For everything else the TLS library decides, which is exactly what the inventory should record.
Certificates are the unfinished part
Steps three and four of the advisory cover certificate authorities, certificates and code signing. For roots, the NSA names RSA 3072 or P-384 as the baseline. Its appendix lists the CNSA 2.0 suite for government networks: AES-256, SHA-384 or SHA-512, ML-KEM-1024 and ML-DSA-87. Ironically, nsa.gov serves a 2,048-bit RSA certificate in our scan, below the 3,072-bit minimum that CNSA 1.0 sets for RSA. The public website is not a National Security System, so the rule does not apply to it, but it shows how far apart policy and practice still are.
There is one subtlety operators should know. The CNSA profiles only allow the P-384 and P-521 curves, and the advisory flags every other curve for review, X25519 included. X25519MLKEM768 is therefore the right choice for ordinary websites but not for systems bound by CNSA. Those need SecP384r1MLKEM1024, which none of the nine hosts in our scan offered.
Our take
For web developers the NSA paper is less dramatic than the headlines suggest. Current libraries already ship the most important part, a quantum-resistant key exchange, and the job is mostly not to switch it off by accident. In practice: record the OpenSSL version and TLS config of every server, remove or extend old ssl_ecdh_curve lists and CurvePreferences so they include X25519MLKEM768, and confirm the result with openssl s_client. If you sit behind a platform like GitHub or Amazon, you wait for the provider. On certificates, the realistic move for now is a clean inventory that flags key sizes below the minimums above. Post-quantum certificates on the web are the next step, and that one only comes once browsers and certificate authorities are ready.



