Quick answer: Caddy 2.10+ built with Go 1.24+ negotiates
X25519MLKEM768by default. If your Caddyfile setscurvesexplicitly, includex25519mlkem768first or you can silently disable the hybrid group.
What this guide covers
It covers the TLS key exchange for a Caddy site. It does not cover data at rest, code signing or QKD. A hybrid session does not make the certificate post-quantum.
Check the version
caddy version
Caddy 2.10.0 and later, built with Go 1.24 or later, use the hybrid group through Go's TLS library. Older builds or older Go toolchains may not offer it. If you build Caddy yourself, check the Go version used for the build.
Keep the default, or include the hybrid group
If you do not set curves, recent Caddy already prefers X25519MLKEM768. A minimal site needs no change.
If you set curves explicitly, put the hybrid group first and keep a classical fallback:
example.com {
tls {
curves x25519mlkem768 x25519
}
reverse_proxy 127.0.0.1:8080
}
The trap is a “hardened” custom list such as curves x25519 secp256r1: it overrides the defaults and removes the post-quantum group.
Validate and reload:
caddy validate --config /etc/caddy/Caddyfile
caddy reload --config /etc/caddy/Caddyfile
Verify the negotiated group
From an OpenSSL 3.5+ client:
openssl s_client \
-connect example.com:443 \
-servername example.com \
-tls1_3 \
-groups X25519MLKEM768 \
</dev/null 2>/dev/null | grep -i "Negotiated TLS1.3 group"
Expected:
Negotiated TLS1.3 group: X25519MLKEM768
If the group is missing, check the Caddy version, the Go build and whether your curves list overrides the default.
Version matrix
| Caddy / Go | Hybrid group | Action |
|---|---|---|
| Caddy 2.10+ / Go 1.24+ | Default | No change unless curves is set |
Caddy 2.10+ / Go 1.24+, custom curves | Only if listed | Add x25519mlkem768 |
| Older Caddy or Go | Not available | Upgrade the build |
Verify with Ready for Quantum
| Check | What it answers |
|---|---|
quantum | Did this connection negotiate a PQ key exchange? |
quantumcert | Does the certificate have the tested PQ property? |
https | Is trust and expiry acceptable? |
| OpenSSL via the Security expert | Which protocol, cipher and group were used? |
Use an agent that can reach the site. If Caddy is behind another proxy or CDN, test the hop that terminates TLS.
Failure example
A team adds curves x25519 secp256r1 to harden Caddy, then tests the site and sees a classical group. The Caddy version is current, but the explicit list removed x25519mlkem768. Adding the hybrid group first restores the negotiation without changing the certificate.
Automate it
- A Command Processor can collect
caddy version, the Caddyfile TLS block and the certificate paths. - An AgentFlow can inventory the host, add the quantum and certificate checks, run both and report.
- A Connect can repeat the
quantumcheck and alert on regression.
Limits
- One target, one port and one agent per check.
- The agent's algorithm set matters.
- Key exchange and certificate signatures are separate.
- No data-at-rest or QKD coverage.
- A clean check does not prove every site block is configured the same way.