# Post-quantum TLS in Caddy and Traefik: X25519MLKEM768 by default

> Caddy 2.10+ and Traefik 3.4.2+ negotiate hybrid X25519MLKEM768 by default via Go 1.24. Check the version and Go toolchain, and fix pinned curves.

Source: https://pqshift.dev/learn/post-quantum-tls-caddy · Published 2026-12-04 · Updated 2026-12-04 · pqshift

Caddy 2.10 and later negotiate the hybrid post-quantum group `X25519MLKEM768` by default, because they're built with Go 1.24+ and Go's TLS stack enables it. You don't need any configuration. Check that you run 2.10+, and that no `curves` setting in your Caddyfile or JSON config pins classical curves. Traefik, also Go-based, has it by default from 3.4.2 and 2.11.26.

## Check the version and the toolchain

```bash
caddy version                                     # needs v2.10.0 or later
caddy build-info | grep -i "^go"                  # Go toolchain used to build it (1.24+)
grep -rn "curves" /etc/caddy/ 2>/dev/null
```

Custom builds (`xcaddy`) take the Go version of the machine that built them. A Caddy 2.10 source built with Go 1.23 won't offer the hybrid group.

## Caddyfile: leave curves alone, or put the hybrid first

Default (recommended): no `curves` line at all. If you do restrict curves, the post-quantum group name is lowercase:

```caddyfile
example.com {
    tls {
        curves x25519mlkem768 x25519 secp256r1 secp384r1
    }
    reverse_proxy localhost:8080
}
```

Keep the classical curves in the list: clients without ML-KEM support and TLS 1.2 connections need them.

## Caddy as a client: reverse_proxy to TLS upstreams

The connection from Caddy to an HTTPS upstream is a separate TLS handshake. Caddy uses Go's defaults there too, so it's post-quantum if the upstream supports it. If you set `tls_curves` on the transport, include the hybrid:

```caddyfile
reverse_proxy https://backend.internal:8443 {
    transport http {
        tls_curves x25519mlkem768 x25519
    }
}
```

## Traefik

Traefik negotiates `X25519MLKEM768` by default from v3.4.2 (and v2.11.26) when no `curvePreferences` are set in its TLS options. If you set them, add `X25519MLKEM768` first:

```yaml
tls:
  options:
    default:
      minVersion: VersionTLS12
      curvePreferences:
        - X25519MLKEM768
        - X25519
        - CurveP256
```

## Verify

```bash
openssl s_client -connect example.com:443 -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -i group
```

Run it from a machine with OpenSSL 3.5+. More in [How to check if a server uses post-quantum TLS](https://pqshift.dev/learn/test-post-quantum-tls). For Go services behind Caddy, see the [Go guide](https://pqshift.dev/learn/post-quantum-tls-go).

## FAQ

### Does Caddy support post-quantum TLS?

Yes. Caddy 2.10 and later, built with Go 1.24+, negotiate X25519MLKEM768 by default. In a Caddyfile the curve name is x25519mlkem768.

### Does Traefik support post-quantum TLS?

Yes, by default from Traefik 3.4.2 and 2.11.26 when curvePreferences is not set. If you set it, put X25519MLKEM768 first.

## Sources

- [Caddy community: Post Quantum Caddy](https://caddy.community/t/post-quantum-caddy/30260)
- [Cloudflare: post-quantum support in third-party software](https://developers.cloudflare.com/ssl/post-quantum-cryptography/pqc-support/)
- [Go 1.26 release notes](https://go.dev/doc/go1.26)
