Post-quantum key exchange on Cloudflare
If your site is behind Cloudflare, your visitors' connections are probably post-quantum already. Since October 2022 every site Cloudflare serves over TLS 1.3 has supported hybrid post-quantum key exchange (X25519MLKEM768), and Cloudflare doesn't charge for it. A connection only ends up post-quantum if the visitor's browser supports it too, and current versions of Chrome, Edge, Firefox and Safari all do.
We checked this on our own site, which runs on Cloudflare: every host negotiated X25519MLKEM768.
Post-quantum key exchange needs TLS 1.3, so leave TLS 1.3 switched on.
1. Raise your minimum TLS version
Cloudflare's default minimum is TLS 1.0. Old TLS versions don't stop post-quantum key exchange, but they're a hygiene problem and they cap your grade on our scan at B.
- In the Cloudflare dashboard, open your domain and go to SSL/TLS, then Edge Certificates.
- Under Minimum TLS Version, choose TLS 1.2.
If you manage zones through the API, the setting is min_tls_version.
2. The connection from Cloudflare to your server
Traffic to your site makes two trips: from the browser to Cloudflare, then from Cloudflare to your own server (the origin). The second trip is a separate connection.
Cloudflare handles it with a setting called Automatic key exchange. It's available on every plan and is on by default for existing and new zones. About once a day Cloudflare checks what your origin supports. If the origin supports X25519MLKEM768, Cloudflare starts using it and moves traffic over in stages. If it doesn't, Cloudflare carries on with a classical key exchange, so nothing breaks.
Your origin gets post-quantum key exchange only if:
- your SSL/TLS encryption mode is Full, Full (strict) or Strict;
- the origin supports TLS 1.3 and X25519MLKEM768 (see the nginx, Apache, Caddy, HAProxy, Go and OpenSSL 3.5 guides);
- the zone doesn't reach the origin through Cloudflare Tunnel. Tunnel has its own post-quantum connection between
cloudflaredand Cloudflare.
The setting is under SSL/TLS, Overview, Configure, then Origin connection & post-quantum encryption.
3. Be careful with the post-quantum requirement
The same panel lets you require post-quantum hybrid key exchange to your origin, under compliance requirements. Turn it on only once you're sure your origin supports X25519MLKEM768. If it doesn't, Cloudflare can't complete the connection and your visitors get error 525.
What our scan sees
Our scan connects the way a browser does, so it sees Cloudflare's edge, not your origin. Anything you say about the hop behind Cloudflare comes from what you know about your own setup.
Then scan your domain below.