Fix guides
How to enable post-quantum TLS (X25519MLKEM768)
Stack-by-stack steps to make your server negotiate hybrid post-quantum key exchange, plus how to verify it.
Updated
Post-quantum key exchange for the web means one thing in practice: your TLS 1.3 endpoint should support and prefer the hybrid group X25519MLKEM768, and keep classical groups as a fallback. Find where TLS terminates for your hostname (CDN, load balancer, reverse proxy or app server), then follow the matching section.
nginx
nginx uses the system OpenSSL. OpenSSL 3.5 or newer supports X25519MLKEM768.
- Check the OpenSSL version nginx is linked against:
nginx -V 2>&1 | grep -i openssl. You need OpenSSL 3.5+ (or a distribution/package that ships it, or BoringSSL/AWS-LC builds). - Enable TLS 1.3 and prefer the hybrid group in the server block:
ssl_protocols TLSv1.2 TLSv1.3; ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1:secp384r1; - Reload (
nginx -t && nginx -s reload) and re-test.
Apache httpd
Apache (mod_ssl) uses the system OpenSSL. OpenSSL 3.5 or newer supports X25519MLKEM768.
- Confirm the OpenSSL version mod_ssl is built against (it is logged at startup). You need OpenSSL 3.5+.
- Enable TLS 1.3 and set the key-exchange groups:
SSLProtocol -all +TLSv1.2 +TLSv1.3 SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1:secp384r1 - Restart Apache and re-test.
Caddy
Caddy is built with Go. Go 1.24 and later offer X25519MLKEM768 by default, and recent Caddy releases inherit that.
- Upgrade Caddy to a current release built with Go 1.24+ (
caddy version,caddy build-info). - Remove any custom
curvessetting in thetlsblock that pins classical-only groups.
Node.js
Node.js ships its own OpenSSL. Releases with OpenSSL 3.5+ support X25519MLKEM768.
- Check
node -p process.versions.openssl(3.5+ required). - If you set
ecdhCurveon your TLS server, put the hybrid group first:https.createServer({ ecdhCurve: 'X25519MLKEM768:X25519:P-256:P-384', /* key, cert */ }, app)
Go
Go 1.24 and later enable X25519MLKEM768 by default in crypto/tls.
- Build with Go 1.24+.
- Remove explicit
CurvePreferencesthat excludetls.X25519MLKEM768, or add it first.
Cloudflare
Cloudflare offers hybrid post-quantum key exchange (X25519MLKEM768) to browsers on its edge by default.
- If this scan shows classical key exchange on a Cloudflare-proxied hostname, check that the DNS record is proxied (orange cloud) and that no custom TLS settings or cipher restrictions disable it.
- The connection from Cloudflare to your origin is separate. Check Cloudflare's documentation for post-quantum connections to origins, and make sure your origin server supports TLS 1.3 with X25519MLKEM768 (see the nginx, Apache, Caddy or Node notes).
Amazon CloudFront
AWS supports hybrid post-quantum key exchange on its TLS endpoints, configured through security policies.
- Check the viewer security policy on the distribution and AWS's current documentation on post-quantum TLS for CloudFront.
- Check the origin protocol policy and whether the origin (ALB, S3, custom origin) also supports TLS 1.3 with ML-KEM.
AWS Elastic Load Balancing
On AWS load balancers, post-quantum key exchange is controlled by the listener's TLS security policy.
- Open the HTTPS listener and review its security policy. Look in AWS's documentation for a policy that includes ML-KEM hybrid key exchange (post-quantum, "PQ" policies).
- Switch to that policy on a staging listener first and re-test with this tool.
Your TLS endpoint
Find the component that terminates TLS for this hostname: CDN, load balancer, reverse proxy, or the application server itself.
- Identify the TLS terminator and its TLS library (OpenSSL, BoringSSL, AWS-LC, Go crypto/tls, rustls, Schannel, etc.).
- Upgrade to a version that supports the hybrid group X25519MLKEM768 (OpenSSL 3.5+, Go 1.24+, recent BoringSSL/AWS-LC/rustls) and make sure TLS 1.3 is enabled.
- Configure key-exchange groups with X25519MLKEM768 first and classical groups as fallback, then re-test.
- For managed platforms (CDN, PaaS, cloud load balancer), check the vendor's post-quantum TLS documentation. Most large providers now support it, sometimes behind a setting or policy.
Verify the change
openssl s_client -connect example.com:443 -servername example.com -groups X25519MLKEM768:X25519:P-256 </dev/null 2>/dev/null | grep -iE "group|temp key"
Or re-run the checker. Also test with an old client (classical groups only) to make sure fallback still works. The checker does this automatically.
Common pitfalls
- Old middleboxes. The post-quantum key share makes the TLS ClientHello larger (more than 1 KB), and some old firewalls and load balancers mishandle it. If connections fail only when post-quantum is offered, the checker reports it as "connection fails when post-quantum is offered."
- TLS 1.2 only. There is no standard post-quantum key exchange for TLS 1.2. Enable TLS 1.3 first.
- Pinned group lists. Hardening guides from a few years ago often pin
ssl_ecdh_curveor equivalent to classical curves, which silently disables post-quantum. Remove or update those settings. - The origin behind the CDN. Fixing the edge does not fix the CDN-to-origin hop.