Post-quantum TLS readiness
Enable hybrid PQC on OpenSSL
OpenSSL 3.5 is the library-level requirement for X25519MLKEM768. Its default TLS 1.3 group list already starts with that hybrid group and still includes classical fallbacks.
This changes key exchange only. Keep a classical fallback. Do not rotate certificates, and do not treat today’s connections as being read — the concern is harvest-now-decrypt-later. Test in staging: hybrid ClientHellos are larger and some middleboxes mishandle them.
Minimum versions
OpenSSL 3.5.0 or later (released 8 Apr 2025). Confirm with `openssl version` and `openssl list -tls1_3 -tls-groups`.
Configuration
openssl.cnf (system default) or s_server
# In the default openssl.cnf TLS / system_default section, or a custom
# SSL_CONF file, you can set the group list explicitly. On OpenSSL 3.5+
# this is already the default, so only set it if something overrode it.
# openssl.cnf
[system_default_sect]
Groups = X25519MLKEM768:X25519:P-256:P-384
# One-shot test server (not for production):
# openssl s_server -tls1_3 -groups X25519MLKEM768:X25519:P-256 -accept 4433 -cert cert.pem -key key.pem
How to verify
openssl s_client -tls1_3 -groups X25519MLKEM768 -connect HOST:443 </dev/null 2>&1 | grep -E "Negotiated TLS1.3 group|Server Temp Key|handshake failure"
# Expect: Negotiated TLS1.3 group: X25519MLKEM768
# Needs OpenSSL 3.5+ on the machine running the command (otherwise a failure is a false negative).
# Or: pqcscan HOST
Notes
- OpenSSL 3.5 also added the hybrids SecP256r1MLKEM768 and SecP384r1MLKEM1024, plus pure ML-KEM groups. Browsers today offer X25519MLKEM768; keep that first unless you have a documented reason not to.
- Group names are case-insensitive in OpenSSL 3.5+. The preferred names are the IANA TLS Supported Groups names.
- Servers and clients that pin an older group list, or that run under a system crypto policy which drops hybrid groups, will not negotiate X25519MLKEM768 even when the library is new enough.
- Do not treat a failed probe from OpenSSL older than 3.5 as proof that the server is not ready — that is a false negative.
Fix with your agent
Paste this into Cursor, Claude Code or Codex in the repo that terminates TLS. Review the PR, and test in staging first. The packaged skill is not published yet.
You are fixing TLS key exchange for post-quantum readiness (hybrid X25519MLKEM768).
1. If I have a pqc-report.json, read it. Otherwise run:
openssl s_client -tls1_3 -groups X25519MLKEM768 -connect HOST:443 </dev/null
(needs OpenSSL 3.5+; a handshake failure means the server does not offer hybrid).
2. Find TLS config in this repo: nginx (ssl_ecdh_curve), Caddy (tls { curves }), HAProxy (ssl-default-bind-curves),
Node (ecdhCurve), Go (tls.Config.CurvePreferences), Dockerfile base images.
3. Enable X25519MLKEM768 FIRST with classic fallback (X25519, secp256r1). Never remove the fallback.
4. Flag anything pinned to OpenSSL < 3.5, Go < 1.24 or an old Node, and propose a version bump. Do not bump silently.
5. If TLS terminates at Cloudflare or an AWS ALB/CloudFront, tell me to change that service's TLS policy instead of editing origin config.
6. Grep for RSA/ECDH/ECDSA usage in code and add `// TODO(crypto-agility)` comments only. Do not change certificates or key types.
7. Open a PR that explains each change, how to verify it, and how to roll back.
Sources
Reviewed 4 Dec 2026 against the official pages linked above. If a vendor page has since changed, follow the vendor page. Other stacks: nginx · Caddy · HAProxy · Node.js · Go · Cloudflare · AWS Application Load Balancer · Java (JDK)