Post-quantum TLS in Caddy and Traefik: X25519MLKEM768 by default
On this page
Short answer: Caddy 2.10 and later negotiate the hybrid post-quantum group X25519MLKEM768 by default, because they're built with Go 1.24+ and Go's TLS stack enables it. You don't need any configuration. Check that you run 2.10+, and that no curves setting in your Caddyfile or JSON config pins classical curves. Traefik, also Go-based, has it by default from 3.4.2 and 2.11.26.
The 30-second check
caddy version # needs v2.10.0 or later
caddy build-info | grep -i "^go" # Go toolchain used to build it (1.24+)
grep -rn "curves" /etc/caddy/ 2>/dev/nullCustom builds (xcaddy) take the Go version of the machine that built them. A Caddy 2.10 source built with Go 1.23 won't offer the hybrid group.
Caddyfile: leave curves alone, or put the hybrid first
Default (recommended): no curves line at all. If you do restrict curves, the post-quantum group name is lowercase:
example.com {
tls {
curves x25519mlkem768 x25519 secp256r1 secp384r1
}
reverse_proxy localhost:8080
}Keep the classical curves in the list: clients without ML-KEM support and TLS 1.2 connections need them.
Caddy as a client: reverse_proxy to TLS upstreams
The connection from Caddy to an HTTPS upstream is a separate TLS handshake. Caddy uses Go's defaults there too, so it's post-quantum if the upstream supports it. If you set tls_curves on the transport, include the hybrid:
reverse_proxy https://backend.internal:8443 {
transport http {
tls_curves x25519mlkem768 x25519
}
}Traefik
Traefik negotiates X25519MLKEM768 by default from v3.4.2 (and v2.11.26) when no curvePreferences are set in its TLS options. If you set them, add X25519MLKEM768 first:
tls:
options:
default:
minVersion: VersionTLS12
curvePreferences:
- X25519MLKEM768
- X25519
- CurveP256Verify
openssl s_client -connect example.com:443 -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -i groupRun it from a machine with OpenSSL 3.5+. More in How to check if a server uses post-quantum TLS. For Go services behind Caddy, see the Go guide.
FAQ
Does Caddy support post-quantum TLS?
Yes. Caddy 2.10 and later, built with Go 1.24+, negotiate X25519MLKEM768 by default. In a Caddyfile the curve name is x25519mlkem768.
Does Traefik support post-quantum TLS?
Yes, by default from Traefik 3.4.2 and 2.11.26 when curvePreferences is not set. If you set it, put X25519MLKEM768 first.