pqcheck.si
Language: English

Languages and runtimes

Post-quantum TLS on Go (crypto/tls)

StatusOn by defaultYou needGo 1.24 or newerChecked4 December 2026 · 2 sources

Since Go 1.24, crypto/tls offers X25519MLKEM768 by default whenever Config.CurvePreferences is left empty. Rebuilding with a current Go is usually all it takes.

Requirements

Check the toolchain, or the version a binary was built with:

go version
go version ./yourbinary

Turn it on

Leave CurvePreferences nil. If you set it, include the hybrid group:

main.go

cfg := &tls.Config{
	CurvePreferences: []tls.CurveID{
		tls.X25519MLKEM768,
		tls.X25519,
		tls.CurveP256,
	},
}

Check 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

Sources

  1. Go 1.24 release notes (crypto/tls)
  2. crypto/tls package docs

More guides: Languages and runtimes

Node.jsJava (JSSE)