Skip to content

Post-quantum TLS on Caddy

Web server. On by default in Caddy 2.10+ (built with Go 1.24+).

Checked 2026-12-05. Official docs: caddyserver.com. JSON: /api/v1/fixes/caddy

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:

Caddyfile, site block
tls {
curves x25519mlkem768 x25519 secp256r1
}

Fixes: KEX_CLASSICAL_ONLY

Prefer post-quantum over classical

Remove a custom curves list, or put x25519mlkem768 first.

Fixes: KEX_PQ_NOT_PREFERRED

Turn off TLS 1.0 and 1.1

Caddy defaults to TLS 1.2+. If you changed it, set:

Caddyfile, site block
tls {
protocols tls1.2 tls1.3
}

Fixes: TLS10_11_ENABLED

Redirect HTTP to HTTPS

Caddy redirects HTTP to HTTPS automatically. Check that auto_https off isn't set and port 80 reaches Caddy.

Fixes: HTTP_NO_REDIRECT

Send HSTS

Send HSTS:

Caddyfile, site block
header Strict-Transport-Security "max-age=31536000; includeSubDomains"

Fixes: HSTS_MISSING, HSTS_SHORT