isquantumsafe Check a domain

isquantumsafe / Guides / Caddy

Post-quantum TLS on Caddy

Caddy 2.10 and newer use X25519MLKEM768 hybrid post-quantum key exchange (ML-KEM) by default. Check your version, avoid pinning curves, and test the result.

Default
On by default
You need
Caddy 2.10.0
Updated
4 December 2026 · 4 sources

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.

Common problems

  • Old Caddy binary. Caddy 2.9.x and older do not know x25519mlkem768. Some distribution packages lag behind; install from the official repository or download the current release.
  • A curves line without the hybrid group. Setting curves x25519 secp256r1 replaces the defaults and turns ML-KEM off. Add x25519mlkem768 first or remove the line.
  • protocols tls1.2 tls1.2. Hybrid key exchange works only in TLS 1.3. If you cap the maximum at TLS 1.2, no client can negotiate it.
  • Custom builds with an old Go toolchain. If you build Caddy with xcaddy, the Go version matters. Go 1.24 or newer is needed for X25519MLKEM768.

Sources

  1. Caddyfile tls directive (Caddy docs)
  2. Caddy v2.10.0 release notes (GitHub)
  3. caddytls values.go: defaultCurves (Caddy source)
  4. Go 1.24 release notes: crypto/tls

Other guides: Web servers