qsafe.sh
Scan
Theme

Fix guides

How to enable post-quantum TLS on any server

Checked

Post-quantum key exchange is X25519MLKEM768 in TLS 1.3. OpenSSL 3.5+, BoringSSL, AWS-LC, rustls and Go 1.24+ support it.

Post-quantum TLS for a website means one thing today: offering the hybrid key exchange X25519MLKEM768 in TLS 1.3 wherever TLS ends for your domain. 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

Enable the hybrid group X25519MLKEM768 wherever TLS is terminated (your CDN, load balancer or web server). With OpenSSL that needs version 3.5 or newer, where it's on by default unless your config overrides the group list.

Prefer post-quantum over classical

Put X25519MLKEM768 first in the server's key exchange group list.

Enable TLS 1.3

Enable TLS 1.3 on your server or CDN.

Turn off TLS 1.0 and 1.1

Set the minimum TLS version to 1.2.

Use strong TLS 1.2 cipher suites

For TLS 1.2, allow only ECDHE suites with AES-GCM or ChaCha20-Poly1305.

Redirect HTTP to HTTPS

Redirect every http:// request to the same https:// URL with a 301.

Send HSTS

Send this header on every HTTPS response (start with a shorter max-age if you're unsure every subdomain supports HTTPS):

Strict-Transport-Security: max-age=31536000; includeSubDomains

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/generic.

Esc