Caddy 2.10.0 and newer offer X25519MLKEM768 by default, so most Caddy sites are already post-quantum for clients that support it. You only need to act if you run an older Caddy or if your config sets curves without the hybrid group.
Requirements
- Caddy 2.10.0 or newer. Version 2.10.0 added
x25519mlkem768 and put it in the default list. The current release line is 2.11.x.
- TLS 1.3, which Caddy enables by default (the default protocol range is TLS 1.2 to TLS 1.3).
- No extra library. Caddy is written in Go and uses Go's
crypto/tls, which supports X25519MLKEM768 from Go 1.24.
Check your version with caddy version.
Enable it
On Caddy 2.10.0 or newer, leave the curves option unset. Caddy's source lists the default key exchanges as X25519MLKEM768, X25519 and P-256, in that order. The Caddy docs also recommend keeping the defaults.
If you must set curves, for example to pin an order for compliance, put this inside the site block in your Caddyfile:
example.com {
tls {
protocols tls1.2 tls1.3
curves x25519mlkem768 x25519 secp256r1
}
}
The supported names in the Caddyfile are x25519mlkem768, x25519, secp256r1, secp384r1 and secp521r1. Reload with caddy reload.
Check it worked
From a machine with an OpenSSL 3.5 or newer client:
openssl s_client -connect example.com:443 -servername example.com \
-groups X25519MLKEM768 -tls1_3 </dev/null 2>/dev/null | grep -i "group"
You should see Negotiated TLS1.3 group: X25519MLKEM768.
Run a free check at https://isquantumsafe.net/ to see the negotiated group and your grade.