Skip to content

Post-quantum TLS on Go (crypto/tls)

Web server. On by default since Go 1.24 unless CurvePreferences is set or GODEBUG=tlsmlkem=0.

Checked 2026-12-05. Official docs: pkg.go.dev. JSON: /api/v1/fixes/go

Turn on post-quantum key exchange

Build with Go 1.24 or newer. If you set CurvePreferences, include the hybrid first:

your tls.Config
&tls.Config{
MinVersion: tls.VersionTLS12,
CurvePreferences: []tls.CurveID{tls.X25519MLKEM768, tls.X25519, tls.CurveP256},
}

Fixes: KEX_CLASSICAL_ONLY

Turn off TLS 1.0 and 1.1

Set MinVersion:

your tls.Config
MinVersion: tls.VersionTLS12,

Fixes: TLS10_11_ENABLED