isquantumsafe Check a domain

isquantumsafe / Guides / Traefik Proxy

Post-quantum TLS on Traefik Proxy

Traefik built with Go 1.24+ uses X25519MLKEM768 hybrid post-quantum key exchange (ML-KEM) by default. How curvePreferences works in TLS options, and tests.

Default
On by default
You need
Traefik 3.4.2 or 2.11.26 (default); 3.5.0 to name X25519MLKEM768 in curvePreferences
Updated
4 December 2026 · 4 sources

Traefik uses Go's crypto/tls, which turns on X25519MLKEM768 by default from Go 1.24. Traefik 3.4.2+ and 2.11.26+ are built that way, so they offer the hybrid group as long as your TLS options do not set curvePreferences.

Requirements

  • Traefik 3.4.2 or newer, or 2.11.26 or newer on the v2 line, for the default behavior.
  • Traefik 3.5.0 or newer if you want to list X25519MLKEM768 by name in curvePreferences. That name was added to Traefik's curve map in PR #11731.
  • Recent 3.7.x and 3.8.x releases also accept SecP256r1MLKEM768 and SecP384r1MLKEM1024.
  • TLS 1.3 allowed. The default TLS option allows TLS 1.2 and 1.3.

Check your version with traefik version.

Enable it

If you have no curvePreferences in any TLS option, you are done. If you set it, add the hybrid first. In the dynamic configuration (file provider), YAML:

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

The same in TOML:

[tls.options]
  [tls.options.default]
    minVersion = "VersionTLS12"
    curvePreferences = ["X25519MLKEM768", "X25519", "CurveP256"]

On Kubernetes, the TLSOption custom resource takes the same curvePreferences list under spec:

apiVersion: traefik.io/v1alpha1
kind: TLSOption
metadata:
  name: default
  namespace: default
spec:
  minVersion: VersionTLS12
  curvePreferences:
    - X25519MLKEM768
    - X25519
    - CurveP256

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

  • curvePreferences with classical curves only. Setting it replaces Go's defaults, so a list such as CurveP521, CurveP384 (the example in Traefik's docs) turns ML-KEM off.
  • "invalid CurveID in curvePreferences". Traefik older than 3.5.0 does not know the name X25519MLKEM768. Upgrade, or remove curvePreferences to get the default.
  • Several TLS options. Routers can point to different TLS options. Check each one, not only default.
  • TLS 1.3 disabled. A maxVersion: VersionTLS12 in a TLS option blocks hybrid key exchange.

Sources

  1. TLS options (Traefik docs)
  2. Introduce X25519MLKEM768 for Post-Quantum-Secure TLS (traefik/traefik PR #11731)
  3. Post-quantum cryptography support in servers (Cloudflare docs)
  4. crypto/tls package documentation (pkg.go.dev)

Other guides: Web servers