
Post-quantum TLS with OpenSSL ML-KEM support is no longer a lab experiment. You can switch it on in production this week. Amazon, Anthropic, Google and other major tech companies have publicly urged organizations to speed up their encryption upgrades. They warn that AI-assisted research is shortening the time until RSA and elliptic-curve keys can be broken. Even if a working quantum computer is still years away, attackers can capture traffic today and decrypt it later. OpenSSL 3.5 LTS now ships NIST’s ML-KEM natively, so the hybrid upgrade is mostly a configuration job.
What’s new: post-quantum TLS in OpenSSL with ML-KEM
The news has two parts. The first is the industry statement. Several of the largest cloud and AI companies are telling everyone else to move faster on cryptographic migration. They frame AI as an accelerant, not a side issue. Models are speeding up algorithm research, cryptanalysis tooling and the engineering behind quantum hardware, so planning around “Q-Day is 15 years out” is a bad bet. When the companies that run much of the internet’s TLS termination say this publicly, compliance and security teams start asking questions. Expect those questions on your desk.
The second part is that the tooling is finally boring enough to deploy. OpenSSL 3.5 is a long-term support release, supported until April 2030. Its default provider includes all three NIST post-quantum standards: ML-KEM (FIPS 203) for key encapsulation, and ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) for signatures. You no longer need the external oqs-provider or a patched fork. ML-KEM is a first-class algorithm alongside X25519 and P-256.
The most useful change for TLS is the hybrid group X25519MLKEM768. It combines classical X25519 with ML-KEM-768, so the session key stays secure unless an attacker breaks both. Chrome, Firefox, Edge, recent Safari releases, Go’s standard library, rustls and Cloudflare already negotiate this exact group. OpenSSL 3.5 also puts it at the top of its default group list. If your server links against 3.5 and you haven’t overridden the groups, you may already be negotiating post-quantum key exchange with modern browsers.
Why it matters
- Harvest now, decrypt later is a present-day threat. Anything recorded today under classical key exchange (API tokens, health records, M&A email, session cookies tied to long-lived identities) becomes readable once a capable quantum machine exists. Hybrid key exchange closes that window for new traffic immediately.
- AI compresses your timeline. If AI keeps speeding up cryptanalysis and hardware engineering, the gap between “theoretical” and “practical” shrinks. Migration projects take years. Starting late is the real risk.
- Key exchange first, certificates later. ML-KEM protects confidentiality now. Browsers do not yet trust post-quantum certificates (ML-DSA) in the public WebPKI, so you keep your RSA or ECDSA certs for authentication. That split makes the first step cheap.
- Regulators have set dates. NIST IR 8547 proposes deprecating RSA and ECC around 2030 and disallowing them by 2035. NSA’s CNSA 2.0 pushes national security systems even earlier. Auditors are starting to ask for a migration plan.
- The performance cost is small but real. An ML-KEM-768 public key is 1,184 bytes and the ciphertext is 1,088 bytes. That pushes the ClientHello past a single packet, and some old middleboxes and poorly written load balancers choke on it. Test before you trust.
- The ecosystem has already moved. Most browser traffic to large CDNs is already hybrid post-quantum. The classical holdouts are origin servers, internal service meshes and B2B APIs.
How to use it today
The steps below assume Linux, nginx or Apache, and root access. The same principles apply to HAProxy, Postfix and any other software that links OpenSSL.
1. Confirm you are on OpenSSL 3.5
The CLI version and the library your web server links against can differ. Check both.
openssl version -a
nginx -V 2>&1 | grep -i openssl
ldd $(which nginx) | grep -E 'libssl|libcrypto'
Debian 13 and RHEL 10.1 ship the 3.5 line, and other recent distributions are following. On an older LTS distro, build nginx against a 3.5 source tree (--with-openssl=/path/to/openssl-3.5.x), use a vendor package that bundles it, or run a container image based on a newer distro.
2. Verify ML-KEM is available
openssl list -kem-algorithms
openssl list -tls-groups 2>/dev/null || openssl list -tls1_3-groups
You should see ML-KEM-512, ML-KEM-768, ML-KEM-1024 and the hybrids X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. For a quick sanity check, generate a key:
openssl genpkey -algorithm ML-KEM-768 -out /tmp/mlkem768.pem
openssl pkey -in /tmp/mlkem768.pem -text -noout | head -n 5
3. Test locally with s_server and s_client
Before you touch production, prove the handshake works end to end on one box.
# Throwaway ECDSA cert (auth stays classical)
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 \
-keyout /tmp/key.pem -out /tmp/cert.pem -days 7 -nodes -subj "/CN=localhost"
# Server that only accepts the hybrid group
openssl s_server -accept 4433 -cert /tmp/cert.pem -key /tmp/key.pem \
-tls1_3 -groups X25519MLKEM768 -www
# In another terminal
openssl s_client -connect localhost:4433 -groups X25519MLKEM768 < /dev/null 2>&1 \
| grep -i "group"
Look for Negotiated TLS1.3 group: X25519MLKEM768.
4. nginx post-quantum TLS config
nginx passes ssl_ecdh_curve straight to OpenSSL’s groups list, so hybrid names work without a special module. Put the hybrid first and keep classical fallbacks for older clients.
server {
listen 443 ssl;
http2 on;
server_name example.com;
ssl_certificate /etc/ssl/example.com/fullchain.pem;
ssl_certificate_key /etc/ssl/example.com/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519:secp256r1:secp384r1;
}
To log the negotiated group per request, add a log format in the http block ($ssl_curve requires nginx 1.21.5+):
log_format pq '$remote_addr "$request" $ssl_protocol $ssl_curve';
access_log /var/log/nginx/pq.log pq;
Reload with nginx -t && systemctl reload nginx. Post-quantum groups exist only in TLS 1.3. TLS 1.2 clients fall back to X25519 or P-256, which is what you want.
5. Apache and HAProxy equivalents
# Apache httpd (mod_ssl)
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:secp256r1
# HAProxy (global section)
ssl-default-bind-curves X25519MLKEM768:X25519:secp256r1
ssl-default-bind-options ssl-min-ver TLSv1.2
6. Set a system-wide default for everything else
Many daemons (curl, Postfix, internal tools) never expose a groups setting. Set the default once in openssl.cnf:
openssl_conf = openssl_init
[openssl_init]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
Groups = X25519MLKEM768:X25519:secp256r1:secp384r1
MinProtocol = TLSv1.2
Find the active file with openssl version -d. RHEL-family systems route this through crypto-policies, so use update-crypto-policies there instead of editing the file by hand.
7. Verify from the outside
# Force the hybrid group against your live host
openssl s_client -connect example.com:443 -servername example.com \
-groups X25519MLKEM768 < /dev/null 2>&1 | grep -E "group|Protocol"
# Confirm classical fallback still works
openssl s_client -connect example.com:443 -servername example.com \
-groups X25519 < /dev/null 2>&1 | grep -E "group|Protocol"
# curl built against OpenSSL 3.5
curl -sv --curves X25519MLKEM768 https://example.com -o /dev/null 2>&1 | grep -i "SSL connection"
In Chrome DevTools, open the Security tab and confirm it reports X25519MLKEM768 as the key exchange. Then watch your $ssl_curve log for a few days to see what share of real traffic negotiates the hybrid group.
8. Watch for failure modes
- ClientHello fragmentation: the larger key share spreads the hello across two TCP segments. Some legacy IDS, WAF and TLS-inspecting proxies drop it. If a subset of clients times out, look there first.
- HelloRetryRequest overhead: if a client sends only an X25519 key share but you prefer the hybrid, you may trigger an extra round trip. OpenSSL 3.5’s group syntax supports tuples and key-share hints; review the
SSL_CONF_cmddocs if latency matters. - Pinned client libraries: older Java, .NET and embedded clients won’t offer ML-KEM. That’s fine as long as you keep classical fallbacks in the list.
How it compares
| Stack | Hybrid ML-KEM in TLS | Default on? | Notes |
|---|---|---|---|
| OpenSSL 3.5 LTS | X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024 | Yes, top of default group list | Native ML-KEM, ML-DSA and SLH-DSA; LTS to 2030; widest server ecosystem |
| OpenSSL 3.0 to 3.4 + oqs-provider | Yes, via external provider | No | Workable bridge for older distros; adds a dependency with no LTS support |
| BoringSSL | X25519MLKEM768 | Yes (Chrome) | Excellent, but no stable API; built for Google and embedders, not general servers |
| AWS-LC | X25519MLKEM768 and others | Yes in recent builds | FIPS-validated ML-KEM; powers s2n-tls and rustls’s aws-lc-rs backend |
| Go crypto/tls (1.24+) | X25519MLKEM768 | Yes | Caddy and most Go services get it automatically on upgrade |
| rustls | X25519MLKEM768 | Yes with aws-lc-rs | Memory-safe option for Rust proxies and clients |
Our take: if you run nginx, Apache or HAProxy, OpenSSL 3.5 is the obvious path. If you’re on Go or Rust, you’re probably done already. Check your logs and move on to the next system.
What’s next
Key exchange is the easy half. The harder half is authentication: post-quantum certificates signed with ML-DSA. OpenSSL 3.5 already generates ML-DSA keys and certificates, which works well for private PKI, mTLS between internal services and code-signing experiments. Public WebPKI adoption is waiting on CA/Browser Forum rules and on browsers accepting larger certificate chains. Proposals such as Merkle Tree Certificates and trust-anchor negotiation aim to keep handshakes from growing too large. Expect pilots through 2027 rather than a clean switchover.
Watch the FIPS track too. If you sell into US federal or regulated markets, you need a FIPS-validated module that includes ML-KEM. Confirm the CMVP status of the OpenSSL 3.5 FIPS provider, or your vendor’s equivalent (AWS-LC, for example), before you claim compliance. On the policy side, the industry push on AI-driven risk will likely reach procurement questionnaires and cyber-insurance renewals well before any regulator enforces a deadline.
Finally, inventory is the real work. Hybrid TLS on your edge is one config change. Finding every Java keystore, IoT firmware image, VPN concentrator and partner SFTP endpoint still on classical-only crypto is a project. Start a cryptographic bill of materials now and rank systems by how long their data must stay secret.
Frequently Asked Questions
Is X25519MLKEM768 safe if ML-KEM turns out to be broken?
Yes, it is at least as safe as what you have now. The hybrid construction combines the X25519 and ML-KEM-768 outputs into one shared secret, so an attacker must break both. If ML-KEM fails, you keep today’s classical security.
Do I need new certificates to enable post-quantum TLS with OpenSSL ML-KEM?
No. ML-KEM handles key exchange only. Your existing RSA or ECDSA certificates continue to handle authentication. Post-quantum certificates (ML-DSA) are a separate, later migration.
Will enabling hybrid key exchange break older clients?
Not if you list classical groups after the hybrid. Clients without ML-KEM support negotiate X25519 or P-256. The main risk is old middleboxes that mishandle large ClientHello messages, so roll out gradually and monitor handshake failures.
How much slower is ML-KEM?
The computation is fast, comparable to or quicker than X25519. The cost is bandwidth: about 2.3 KB of extra handshake data and occasionally an extra round trip. For most web and API traffic, the added latency is under a few milliseconds.
Should I use ML-KEM-1024 or pure ML-KEM instead of the hybrid?
For public-facing TLS, use X25519MLKEM768, because browsers and CDNs negotiate it. SecP384r1MLKEM1024 makes sense when CNSA 2.0 or a similar policy requires a higher security level. OpenSSL 3.5 also offers pure ML-KEM groups, but most organizations should keep the classical half for defense in depth during the transition.
What does “harvest now, decrypt later” mean for my data?
An attacker records your encrypted traffic today and stores it until quantum computers can break the classical key exchange. If your data must stay confidential for five to ten years or more, classical-only TLS already leaves it exposed. Hybrid ML-KEM protects new sessions.
Go deeper than this article
This article covers the essentials. Our premium eguide library gives you the full step-by-step playbooks — prompts, workflows, and copy-paste recipes you can put to work today.