qsafe.sh
Scan
Theme

Fix guides

How to enable post-quantum TLS on Cloudflare

Checked · Official docs

On by default for every proxied hostname.

Cloudflare terminates TLS for your visitors, so the key exchange they get is decided by Cloudflare, not by your origin server. Change it here first; your origin only matters for the hop from Cloudflare back to it. The hybrid falls back to classical X25519 for clients that don't support it, so turning it on doesn't break older browsers.

Turn on post-quantum key exchange

Cloudflare offers post-quantum key exchange to visitors by default. If it's missing, check that the DNS record is proxied (orange cloud), and that a custom cipher or TLS setting on the hostname isn't limiting key exchange.

Prefer post-quantum over classical

Cloudflare prefers post-quantum by default. Check for a custom TLS configuration on this hostname.

Enable TLS 1.3

In the dashboard: SSL/TLS → Edge Certificates → TLS 1.3 → On.

Turn off TLS 1.0 and 1.1

In the dashboard: SSL/TLS → Edge Certificates → Minimum TLS Version → TLS 1.2.

Use strong TLS 1.2 cipher suites

In the dashboard: SSL/TLS → Edge Certificates → Cipher suites → choose the Modern or Compatible preset.

Redirect HTTP to HTTPS

In the dashboard: SSL/TLS → Edge Certificates → Always Use HTTPS → On.

Send HSTS

In the dashboard: SSL/TLS → Edge Certificates → HTTP Strict Transport Security (HSTS) → Enable, max-age 12 months, include subdomains if they all serve HTTPS.

Check that it worked

After you deploy, rescan your domain. A quantum-safe setup shows X25519MLKEM768 as the negotiated key exchange. From a terminal:

curl qsafe.sh/your-domain.com?fresh

Prefer to let an AI agent make the change? The qsafe-fix skill and the MCP server use this same guide. It's also available as JSON from /api/v1/fixes/cloudflare.

Esc