Quantum-secure Caddy: keep the default hybrid group

Caddy 2.10+ negotiates X25519MLKEM768 by default through Go 1.24+, but a custom curves list can silently disable it.

Quick answer: Caddy 2.10+ built with Go 1.24+ negotiates X25519MLKEM768 by default. If your Caddyfile sets curves explicitly, include x25519mlkem768 first 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 / GoHybrid groupAction
Caddy 2.10+ / Go 1.24+DefaultNo change unless curves is set
Caddy 2.10+ / Go 1.24+, custom curvesOnly if listedAdd x25519mlkem768
Older Caddy or GoNot availableUpgrade the build

Verify with Ready for Quantum

CheckWhat it answers
quantumDid this connection negotiate a PQ key exchange?
quantumcertDoes the certificate have the tested PQ property?
httpsIs trust and expiry acceptable?
OpenSSL via the Security expertWhich 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 quantum check 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.

Next

Common questions

Does Caddy support hybrid ML-KEM by default?

Caddy 2.10.0 and later, built with Go 1.24 or later, use X25519MLKEM768 by default through Go's TLS library. Recent builds need no extra configuration. Older Caddy builds or older Go toolchains may not offer the group.

How do I keep it enabled with custom curves?

If your Caddyfile sets curves explicitly, include x25519mlkem768 in the list, preferably first. Setting curves overrides the defaults and can otherwise remove the hybrid group. Keep a classical fallback such as x25519 or secp256r1.

How do I verify Caddy?

Run openssl s_client with -groups X25519MLKEM768 against the site and look for the negotiated TLS 1.3 group. For recurring evidence, add the host on quantum and quantumcert from an agent that can reach it.

Keep exploring

Quantum-secure nginx: prove the origin negotiates hybrid TLS

Configure nginx against OpenSSL 3.5+, prefer X25519MLKEM768, and test the origin rather than only the CDN.

Quantum-secure Apache httpd: SSLOpenSSLConfCmd Groups

Set the hybrid group list on Apache, keep a classical fallback, and verify the negotiated group from a chosen agent.

Quantum-secure Traefik: curvePreferences and the default trap

Traefik 3.8.1+ accepts X25519MLKEM768 in curvePreferences, but a custom list that omits it can disable the hybrid group.

Browse the library · Quantum readiness docs · Check a system