Traefik is written in Go, and Go's TLS library offers X25519MLKEM768 by default from Go 1.24. A current Traefik with default TLS options is ready.
Requirements
- A Traefik binary built with Go 1.24 or newer (current v3 releases are).
- No curvePreferences in your TLS options, or one that includes the hybrid group.
The output shows the Go version Traefik was built with:
traefik versionTurn it on
Leave curvePreferences out to use Go's defaults. If you set it, list the hybrid group first (needs a Traefik version that accepts this name):
dynamic configuration (YAML)
tls:
options:
default:
minVersion: VersionTLS12
curvePreferences:
- X25519MLKEM768
- X25519
- CurveP256Check that it worked
Run the checker against your hostname. It reports X25519MLKEM768 as supported once the change is live.
From a terminal, with an OpenSSL 3.5+ client. Output that names X25519MLKEM768 means it works, a handshake failure alert means it does not:
openssl s_client -connect example.com:443 -servername example.com \
-tls1_3 -groups X25519MLKEM768 </dev/null 2>&1 | grep -iE 'group|alert'Common problems
- A curvePreferences list copied from an older guide disables post-quantum key exchange.
- Old Traefik v2 binaries were built with older Go versions. Upgrade rather than configure.