qsafe.sh
Scan
Theme

Fix guides

How to enable post-quantum TLS on Traefik

Checked · Official docs

Uses Go's TLS stack: on by default in releases built with Go 1.24+ unless curvePreferences overrides it.

When Traefik faces the internet directly, it negotiates TLS with every visitor, so the change belongs in its TLS configuration. If a CDN or load balancer sits in front, fix that first: it is what visitors connect to. The hybrid falls back to classical X25519 for clients that don't support it, so turning it on doesn't break older browsers.

Turn on post-quantum key exchange

Upgrade Traefik to a release built with Go 1.24 or newer. If your TLS options set curvePreferences, include the hybrid first:

dynamic configuration
tls:
  options:
    default:
      curvePreferences:
        - X25519MLKEM768
        - X25519
        - CurveP256

Turn off TLS 1.0 and 1.1

Set the minimum version:

dynamic configuration
tls:
  options:
    default:
      minVersion: VersionTLS12

Send HSTS

Add a headers middleware:

dynamic configuration
http:
  middlewares:
    hsts:
      headers:
        stsSeconds: 31536000
        stsIncludeSubdomains: true

Check that it worked

After you deploy, rescan your domain. A quantum-safe setup shows X25519MLKEM768 as the negotiated key exchange. From a terminal:

curl qsafe.sh/your-domain.com?fresh

Prefer to let an AI agent make the change? The qsafe-fix skill and the MCP server use this same guide. It's also available as JSON from /api/v1/fixes/traefik.

Esc