Go 1.24+ & Go 1.25 Post-Quantum TLS Guide (X25519MLKEM768 & CurvePreferences)
Go 1.24 and 1.25 negotiate hybrid X25519MLKEM768 by default in standard library crypto/tls. However, pre-1.24 container images and explicit CurvePreferences slices in Go code silently disable post-quantum negotiation.
Technical readiness profile
- Platform
- Go (Golang crypto/tls)
- Current status
- Upgrade Required Below 1.24
- Minimum version / policy
- Go 1.24+ (or current Go 1.25+; note Go has no LTS branch)
- Algorithms
- X25519MLKEM768 enabled by default in crypto/tls
- FIPS 140-3 & CNSA 2.0
- Audit Go FIPS 140-3 native crypto module mode (GOFIPS140) if regulated
- Vendor Trust Center
- https://go.dev/doc/security/
How to verify in your environment
go version grep -rn "CurvePreferences\|tlsmlkem" ./
Recommended IT and engineering actions
- Upgrade Dockerfile and CI toolchains (FROM golang:1.25-alpine) rather than only editing go.mod.
- Grep your entire codebase for tls.Config.CurvePreferences and GODEBUG=tlsmlkem=0 overrides.
- Rebuild and verify live TLS endpoints on port 443.
Common audit traps and gotchas
Go does not offer LTS branches; stay on current supported releases (1.24/1.25+).
Even on Go 1.25, setting CurvePreferences: []tls.CurveID{tls.X25519, tls.CurveP256} silently turns OFF ML-KEM.
Related deep-dive guides
Compare other platforms in Developer Runtimes, Web Servers & Crypto Libraries