To get post-quantum TLS, your site needs TLS 1.3 with the hybrid key exchange X25519MLKEM768. Behind Cloudflare it is on for visitors by default; on your own server you need OpenSSL 3.5 or newer. Status: NSA guidance of December 2, 2026; checked December 3.
What the NSA published on December 2
On December 2, 2026 the US National Security Agency released the advisory “Immediate Actions to Push Toward Post-Quantum”, and ONCD, NSA and CISA published a joint statement about new cryptographic discoveries. The agency's own pages refused our requests, so the summary below relies on The Hacker News, CyberScoop, iTnews and the analysis by cryptography engineer Filippo Valsorda.
| Question | Answer |
|---|---|
| Who is it addressed to? | Owners, operators and vendors of US National Security Systems |
| Is it a law for ordinary websites? | No. It is still a clear signal of where the industry is going |
| What does it ask for web servers? | Move to TLS 1.3, turn on post-quantum options, remove weak curves and old Diffie-Hellman groups |
| Is there a new deadline? | No new date; the message is “immediately” |
| Why now? | Discoveries disclosed by developers of advanced AI models that affect some cryptography in use |
| Is anything broken today? | The joint statement says there is no immediate and widespread threat |
The government named no algorithm, company or method. Filippo Valsorda reads the list of algorithms the advisory tells owners to look for as a hint that 256-bit elliptic curves (P-256, X25519, Ed25519) may be weaker than believed. That is his interpretation, not a confirmed result. The practical conclusion is the same either way: move key exchange to a hybrid that includes ML-KEM, and make sure you are able to update your TLS software quickly.
You may also have read that AI found something in ML-KEM itself. On November 30 Anthropic published research on a new quantum algorithm for certain module-lattice problems, the mathematics behind ML-KEM and ML-DSA. The company says it has no practical effect on systems in use today, the UK NCSC says its advice is unchanged, and The Hacker News notes it is unclear whether this is what the government statement refers to. It does not change the steps below: the hybrid still includes classical X25519.
Does it concern your site? Find your setup
| Your setup | What happens by default | What to do |
|---|---|---|
| Behind Cloudflare | Visitors get hybrid key exchange over TLS 1.3 | Check TLS 1.3 is on, then check your origin |
| Own server with OpenSSL 3.5+ | The library offers X25519MLKEM768 | Look for old curve settings in the config |
| Own server on Ubuntu 22.04 / 24.04 or Debian 12 | System OpenSSL 3.0 has no ML-KEM | Upgrade the system or terminate TLS elsewhere |
| RHEL, AlmaLinux, Rocky 9.7+ | Post-quantum is opt-in | Switch the crypto policy |
| Shared hosting or a website builder | Depends entirely on the provider | Test your domain and ask support |
| Caddy 2.10 or newer | X25519MLKEM768 is on by default | Just verify |
Why it matters before any quantum computer exists: encrypted traffic can be recorded now and decrypted later. Logins, form submissions, personal data and API tokens sent today may still be sensitive in several years. The hybrid key exchange closes exactly this gap.
Step 1: check whether your site uses post-quantum TLS
The test offers the server only the hybrid group. If the server supports it, OpenSSL prints the line Negotiated TLS1.3 group: X25519MLKEM768. If you see Negotiated TLS1.3 group: <NULL> and Cipher is (NONE), the handshake failed. If nothing is printed at all, your local OpenSSL probably does not know the group, or the host was not reached.
openssl version # you need 3.5 or newer on the machine you test FROM
openssl s_client -connect example.com:443 -servername example.com \
-groups X25519MLKEM768 -tls1_3 </dev/null 2>/dev/null \
| grep -E "Negotiated TLS1.3 group|Cipher is"So read your local version first. An error about the group name, hidden here by 2>/dev/null, is the usual sign of an old library.
# no OpenSSL 3.5 on your laptop? use a throwaway Alpine container
docker run --rm alpine:3.24 sh -c "apk add -q openssl && \
echo | openssl s_client -connect example.com:443 -servername example.com \
-groups X25519MLKEM768 -tls1_3 2>/dev/null | grep -E 'Negotiated|Cipher is'"Check every name that accepts HTTPS, not only the main one: API, shop, admin panel, staging. They often sit on different servers.
for host in example.com www.example.com api.example.com shop.example.com; do
if echo | openssl s_client -connect "$host:443" -servername "$host" \
-groups X25519MLKEM768 -tls1_3 2>/dev/null \
| grep -q "Negotiated TLS1.3 group: X25519MLKEM768"; then
echo "$host OK"
else
echo "$host NO post-quantum key exchange"
fi
done“NO” also appears when a host is unreachable or your local OpenSSL is older than 3.5 (macOS ships LibreSSL by default), so check one known-good host first.
The same check in the browser
In Chrome open DevTools, go to the Privacy and security panel, select your origin and look at the Connection section. The Key exchange row should read X25519MLKEM768. Visitors can use it with Chrome and Edge 131+, Firefox 132+ and Safari 26+ according to Cloudflare's support list. On Android, that list names Firefox 145+. An antivirus or corporate proxy that intercepts HTTPS will show you its own connection, not your server's.
Step 2: check the server versions
OpenSSL 3.5, released in April 2025, added ML-KEM and ML-DSA and put X25519MLKEM768 first in the default group list. What your distribution ships decides whether you only change settings or need an upgrade.
| System | OpenSSL branch | Post-quantum key exchange |
|---|---|---|
| Ubuntu 26.04 | 3.5 | Yes, by default |
| Ubuntu 24.04 and 22.04 | 3.0 | No ML-KEM in the system library |
| Debian 13 | 3.5 | Yes with library defaults |
| Debian 12 | 3.0 | No |
| RHEL 10.1 and newer | 3.5 | On by default (not in FIPS mode) |
| RHEL 9.7 and newer 9.x | 3.5 | Opt-in through crypto policy |
| Alpine 3.24 | 3.5 | Yes with library defaults |
cat /etc/os-release # distribution and version
openssl version # the system library
nginx -V 2>&1 | grep -i ssl # what nginx was built with and runs with
# settings that can override the library defaults
sudo grep -rnE "ssl_ecdh_curve|ssl_protocols|ssl_conf_command" /etc/nginx/
sudo grep -rnE "SSLOpenSSLConfCmd|SSLProtocol" /etc/apache2/ /etc/httpd/ 2>/dev/nullPay attention to the last two commands. Many servers carry a hardening snippet copied years ago with a fixed curve list such as ssl_ecdh_curve X25519:secp384r1;. Such a line silently switches post-quantum key exchange off even after you upgrade OpenSSL.
A Docker image has its own libraries: the host version says nothing about nginx inside a container. Run nginx -V inside the container and rebuild or update the image.
# RHEL / AlmaLinux / Rocky 9.7 and newer: post-quantum is opt-in
sudo update-crypto-policies --show
sudo update-crypto-policies --set DEFAULT:PQ
sudo systemctl restart nginx # or httpdA crypto policy changes the behaviour of the whole system, including outgoing connections, so try it on a test server first. Red Hat's post-quantum page describes the current state of each release.
Step 3: enable X25519MLKEM768 on your server
If OpenSSL is 3.5 or newer and the configuration sets no curves, you may have nothing to enable: nginx uses ssl_ecdh_curve auto by default, which means the library's list. Set the list explicitly when an old line has to be replaced or you want the order to be visible in the config.
nginx
# /etc/nginx/nginx.conf, inside http { }
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1:secp384r1;sudo nginx -t # fails if the library does not know the group
sudo systemctl reload nginx
# after upgrading OpenSSL itself, restart instead of reload
sudo systemctl restart nginxKeep prime256v1 and secp384r1 in the list: older clients need them, and for TLS 1.2 a server with an ECDSA certificate needs the certificate's curve there. Put the lines at http level or in the default server block. Connections start in the default server, so a setting placed only in a secondary virtual host may not do what you expect. Test each name after the change.
These fallbacks are a compatibility choice for public websites. They would not satisfy the NSA's rules for National Security Systems, which do not approve X25519 or P-256.
Apache
# global SSL settings or the virtual host (Apache with OpenSSL 3.5+)
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1:secp384r1Run apachectl configtest and restart the service. SSLOpenSSLConfCmd passes the value straight to OpenSSL, so an old library rejects the unknown group.
HAProxy
global
ssl-default-bind-curves X25519MLKEM768:SecP256r1MLKEM768:X25519:P-384:P-256Run haproxy -vv first to see which TLS library your build uses. HAProxy's own guide says hybrid support needs Enterprise 3.2+ or the community 3.3+ performance packages; verify a distribution build with the test from step 1 instead of assuming.
Caddy and Node.js
Caddy 2.10 and newer negotiate X25519MLKEM768 without any setting, unless you have restricted curves in the Caddyfile. Official Node.js builds bundle OpenSSL 3.5 starting with 22.20.0 and 24.5.0. If Node sits behind nginx, nginx terminates TLS and Node's settings do not affect visitors.
import https from 'node:https';
import { readFileSync } from 'node:fs';
// only needed if Node.js itself terminates TLS
console.log(process.versions.openssl); // expect 3.5 or newer
https.createServer({
key: readFileSync('/etc/ssl/private/site.key'),
cert: readFileSync('/etc/ssl/certs/site.pem'),
ecdhCurve: 'X25519MLKEM768:X25519:prime256v1',
}, (req, res) => res.end('ok')).listen(443);Outgoing calls from your backend matter too: payment APIs, webhooks, database connections over TLS. They depend on the OpenSSL of the runtime that makes the call. If you are updating Node.js anyway, our guide to the Node.js security update covers nvm, PM2 and CI.
Step 4: behind Cloudflare, check both halves
With a CDN there are two separate TLS connections. The first runs from the visitor to Cloudflare. Cloudflare's documentation says hybrid post-quantum key agreement is enabled for websites and APIs served through its network over TLS 1.3. Open SSL/TLS settings and confirm that TLS 1.3 is switched on.
The second runs from Cloudflare to your server. Cloudflare prefers a post-quantum key exchange there when the origin supports X25519MLKEM768, so your server has to support it: see PQC to origin. There is also a separate “Post-quantum hybrid” compliance requirement (not the Full (strict) SSL mode): with it, Cloudflare returns error 525 if the origin cannot do a post-quantum key exchange, including for outbound fetch() from Workers in that zone. Do not turn it on before the test below passes.
# run on the server itself, so the CDN is not in the way
echo | openssl s_client -connect 127.0.0.1:443 -servername example.com \
-groups X25519MLKEM768 -tls1_3 2>/dev/null | grep -E "Negotiated|Cipher is"If the web server does not listen on 127.0.0.1, use its own address instead. If TLS ends on a load balancer or a separate proxy, run the test against that machine: it is the one Cloudflare talks to.
If upgrading the origin is not possible yet, Cloudflare suggests Cloudflare Tunnel as the way to protect that leg. In its post of December 3 the company also moved its target for being fully post-quantum from 2029 to 2027, and reported that about 73% of human connections to its network already use post-quantum key agreement.
Step 5: measure what visitors actually negotiate
A command-line test proves the server can do it. Logs show how much real traffic does. nginx exposes the negotiated group in the $ssl_curve variable.
# inside http { }
log_format tls '$remote_addr $time_iso8601 $ssl_protocol $ssl_curve';
# inside server { }
access_log /var/log/nginx/access.log; # keep your normal log (use your path)
access_log /var/log/nginx/tls.log tls;An access_log inside server replaces the ones inherited from http, so list your normal log there too, or you will silently stop writing it.
# share of connections by negotiated group
awk '{print $4}' /var/log/nginx/tls.log | sort | uniq -c | sort -rnExpect X25519MLKEM768 for current browsers. A build that does not know the name may print the numeric code 0x11ec, which is the same group. Classical entries usually come from older devices, monitoring services, bots and libraries. If a payment or webhook partner shows up there, ask them about their plans. Check that log rotation covers the file and remove it when you no longer need it, because it contains IP addresses.
Do not forget SSH
Your server access has the same problem. According to the OpenSSH release notes, mlkem768x25519-sha256 arrived in 9.9 and became the default in 10.0. Since 10.1 the client warns when a connection does not use a post-quantum key exchange.
ssh -V # client version
ssh -Q kex | grep -i mlkem # does the client support ML-KEM?
ssh -v deploy@example.com exit 2>&1 | grep "kex: algorithm"
# good: debug1: kex: algorithm: mlkem768x25519-sha256
# sntrup761x25519-sha512 is post-quantum too (an older default)Signatures are the newer part. OpenSSH 10.6 of October 2026 enabled the composite key type ssh-mldsa44-ed25519. Keys created with the experimental version in 10.4 have to be regenerated. If your versions are older, wait for your distribution's package rather than building SSH by hand on a production machine.
# only when BOTH client and server run OpenSSH 10.6 or newer
ssh-keygen -t mldsa44-ed25519 -f ~/.ssh/id_mldsa
ssh-copy-id -i ~/.ssh/id_mldsa.pub deploy@example.com
# must print a line naming id_mldsa; only then remove the old key
ssh -v -o IdentitiesOnly=yes -o PreferredAuthentications=publickey \
-i ~/.ssh/id_mldsa deploy@example.com exit 2>&1 | grep "Server accepts key"While you are in authorized_keys, delete keys nobody can explain. Our React2Keys server checks show how to find them.
Certificates: what not to buy
Post-quantum key exchange protects confidentiality. Authentication, meaning the certificate that proves your server is yours, is a separate migration, and the public web is not there yet. Chrome's draft policy says it will not add traditional X.509 certificates with post-quantum cryptography to its root store; the planned path is Merkle Tree Certificates. Let's Encrypt described in June a staging environment for late 2026 and production in 2027, and Cloudflare expects to issue such certificates from the first quarter of 2027.
- Keep your current certificate. It works with the hybrid key exchange.
- Automate renewal. For certbot,
sudo certbot renew --dry-runshows whether it still works. Future changes will arrive faster if your ACME client is current. - Inventory private PKI. Client certificates, internal CAs, code signing and VPN keys are where you control both ends, and where planning starts now.
- Be sceptical of sales emails offering a quantum-safe certificate for a public website.
If something breaks
| Symptom | Likely cause | Fix |
|---|---|---|
nginx -t rejects the curve list | The library is older than 3.5 | Remove the line, upgrade first |
| Test still fails after upgrade | Old process or old container image | Restart nginx, rebuild the image |
| Only one domain fails | It lives on another server or has its own settings | Check DNS and that server block |
| Some clients hang during the handshake | An old network device mishandles the larger first message | Update the firewall or load balancer in the path |
| Old clients cannot connect | TLS 1.2 or classical groups were removed | Return the fallbacks |
The hybrid key share is more than a kilobyte larger than a classical one, so the first TLS message may no longer fit into a single network packet. Modern software handles this; outdated middleboxes sometimes do not. Rolling back is simple: restore the previous configuration and reload.
On shared hosting: what to ask support
You cannot change the TLS library there. Send a short question: “Does my site support TLS 1.3 with the X25519MLKEM768 key exchange? If not, when do you plan to enable it?” Attach the output of the test. If there is no plan, putting a CDN with post-quantum support in front covers the visitor side.
Finally, post-quantum TLS protects data on the way, not the page itself. A script injected into your checkout reads the data before encryption, as in the WebRTC card skimmer case, so regular updates and checks stay as important as before.
Frequently asked questions
What is post-quantum TLS?
It is TLS that protects the connection with algorithms designed to resist quantum computers. On the web today this means the hybrid key exchange X25519MLKEM768 in TLS 1.3, standardised in RFC 10024. It protects recorded traffic from later decryption, but your certificate and its signature remain classical.
Is TLS 1.3 already quantum safe?
No. TLS 1.3 with a classical key exchange such as X25519 or P-256 is not post-quantum. You need TLS 1.3 and a hybrid group like X25519MLKEM768 negotiated between the visitor and your server. Check the actual connection, not only the protocol version in your configuration.
Do I have to do anything if my site is behind Cloudflare?
For the visitor side, usually not: Cloudflare says hybrid post-quantum key agreement is on by default for sites it serves over TLS 1.3, so make sure TLS 1.3 is enabled. The connection from Cloudflare to your server is separate and is only post-quantum if your origin supports it.
Do I need a new post-quantum SSL certificate?
Not now. We found no way to get a publicly trusted ML-DSA certificate for a website today, and Chrome plans a different design, Merkle Tree Certificates, with issuance expected from 2027. Keep your current certificate, automate renewal and do not pay for a "quantum-safe certificate".
Will old browsers stop working if I enable X25519MLKEM768?
Not if you keep classical groups after it in the list and keep TLS 1.2 enabled. A client that does not know the hybrid group negotiates X25519 or P-256 as before. Problems appear if you offer only the hybrid group or allow only TLS 1.3 without checking who visits you.
Did the NSA say that RSA or elliptic curves are broken?
Not in anything we could read. The joint statement says recent discoveries affect some cryptography in use but do not present an immediate and widespread threat. No algorithm was named as broken. Claims that 256-bit elliptic curves are weakened are an expert reading of the advisory, not an official finding.
