Post-quantum TLS on Cloudflare
There is nothing to turn on for visitors. Cloudflare's documentation says that since October 2022 every site and API it serves over TLS 1.3 supports post-quantum hybrid key agreement. If a Cloudflare site fails the test, one of the cases below applies.
If your site fails the test
- The record is not proxied. A DNS record set to “DNS only” (grey cloud) sends visitors straight to your origin server, and its TLS settings apply. Either proxy the record or enable post-quantum key exchange on the origin with the nginx or Apache guide.
- TLS 1.3 is switched off for the zone. Post-quantum key exchange only exists in TLS 1.3. In the dashboard, open SSL/TLS, then Edge Certificates, and check that TLS 1.3 is on.
- The tested hostname is somewhere else. If
example.comis on Cloudflare butwww.example.compoints at another host, visitors who land onwwwget that host’s TLS.
The hop this registry can’t see: Cloudflare to your origin
A pass here covers the connection between a visitor and Cloudflare. Traffic then travels from Cloudflare to your own server over a second connection, which no outside test can observe.
Cloudflare’s documentation says automatic key exchange is on for all existing zones and on by default for new ones: Cloudflare learns whether the origin supports X25519MLKEM768 and uses it when it does. For that hop to be post-quantum:
- The zone’s SSL/TLS encryption mode must be Full, Full (strict) or Strict, so Cloudflare connects to the origin over TLS at all.
- The origin must negotiate TLS 1.3 and accept the hybrid group. Follow the nginx or Apache guide.
- The setting is in the dashboard under SSL/TLS, Overview, in the origin connection section.
Cloudflare documents that this does not apply to origins reached through Cloudflare Tunnel, which has its own transport.
Check that it worked
Test the site here. The registry offers only post-quantum key exchange, so a pass means the server accepted it.
Try , , ,
Or from a terminal, with OpenSSL 3.5 or newer on your own machine (the openssl that ships with macOS is LibreSSL and won’t work):
openssl s_client -connect example.com:443 -servername example.com \
-groups X25519MLKEM768 </dev/null 2>&1 | grep "Negotiated TLS1.3 group"A ready server prints Negotiated TLS1.3 group: X25519MLKEM768. One that isn’t ends the handshake with alert handshake failure.
To test an origin directly, run the same command against the origin’s own address and pass your site’s hostname to -servername.
Sources
- Cloudflare docs: post-quantum cryptography
- Cloudflare docs: post-quantum between Cloudflare and origin servers
- Cloudflare docs: automatic key exchange
Last reviewed 4 December 2026.