How to enable post-quantum TLS on Caddy
Checked · Official docs
On by default in Caddy 2.10+ (built with Go 1.24+).
When Caddy faces the internet directly, it negotiates TLS with every visitor, so the change belongs in its TLS configuration. If a CDN or load balancer sits in front, fix that first: it is what visitors connect to. 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
Upgrade to Caddy 2.10 or newer, where X25519MLKEM768 is on by default. If your Caddyfile sets curves, add it there too:
tls {
curves x25519mlkem768 x25519 secp256r1
}Prefer post-quantum over classical
Remove a custom curves list, or put x25519mlkem768 first.
Turn off TLS 1.0 and 1.1
Caddy defaults to TLS 1.2+. If you changed it, set:
tls {
protocols tls1.2 tls1.3
}Redirect HTTP to HTTPS
Caddy redirects HTTP to HTTPS automatically. Check that auto_https off isn't set and port 80 reaches Caddy.
Send HSTS
Send HSTS:
header 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/caddy.