Fix guides / Caddy, Traefik and other Go servers

Caddy, Traefik and other Go servers

About 15 minutes

Go 1.24+ enables X25519MLKEM768 by default in crypto/tls. Upgrade the binary and do not pin curve preferences that leave it out.

Steps
  1. Upgrade Caddy / Traefik to a release built with Go 1.24 or newer.
  2. Remove custom curve settings, or list X25519MLKEM768 first.
  3. Re-scan.
Caddyfile (only if you set curves)
tls { curves x25519mlkem768 x25519 secp256r1 }
Go
// Go 1.24+: leave CurvePreferences nil for the default, or: cfg.CurvePreferences = []tls.CurveID{tls.X25519MLKEM768, tls.X25519, tls.CurveP256}
Verify it worked

Requires OpenSSL 3.5+. Expected output includes X25519MLKEM768.

openssl s_client -connect yourdomain.com:443 -servername yourdomain.com -groups X25519MLKEM768 -tls1_3 </dev/null 2>&1 | grep -i "group"

To re-run the full scan:

Implementation support We can take your engineers through the change on a call, or run the rollout across all affected endpoints.
Book a scoping call
Post-quantum fix: Caddy, Traefik and other Go servers · AreWeSecured