Skip to content
CyberSecurityAsset
Fix it on Go (net/http)

Fix it, step by step

Turn on post-quantum key exchange on Go (net/http).

Pick what serves your site. We'll go one step at a time, and the last step checks it worked.

By , Co-founder and CTO, Kief Studio. Checked against its sources .

  1. Build with Go 1.24 or later, Completed
  2. Leave CurvePreferences unset, Completed
  3. Check it from outside, In progress
  4. Scan again, Not started
Go (net/http) · step 3 of 4

Check it from outside

Ask for the hybrid group on its own. A handshake that completes and names X25519MLKEM768 means it's offered. Then offer it alongside X25519 and check the hybrid still wins, which is what a browser sees.

Needs OpenSSL 3.5 or later on the machine you test from
openssl s_client -connect yourcompany.com:443 -tls1_3 -groups X25519MLKEM768 </dev/null 2>&1 | grep -i groupopenssl s_client -connect yourcompany.com:443 -tls1_3 -groups X25519MLKEM768:X25519 </dev/null 2>&1 | grep -i group

Rather not touch the config? Kief Studio can turn it on for you and prove it from outside.

Have us do it

Every step for Go (net/http) on one page

  1. 1. Build with Go 1.24 or later

    crypto/tls enables X25519MLKEM768 by default when tls.Config.CurvePreferences is nil. Setting GODEBUG=tlsmlkem=0 turns it off, so make sure nothing sets that.

    go version
  2. 2. Leave CurvePreferences unset

    If you do set it, include tls.X25519MLKEM768. From Go 1.24 the order of CurvePreferences is ignored, so listing it doesn't change what's preferred.

  3. 3. Check it from outside

    Ask for the hybrid group on its own. A handshake that completes and names X25519MLKEM768 means it's offered. Then offer it alongside X25519 and check the hybrid still wins, which is what a browser sees.

    Needs OpenSSL 3.5 or later on the machine you test from
    openssl s_client -connect yourcompany.com:443 -tls1_3 -groups X25519MLKEM768 </dev/null 2>&1 | grep -i groupopenssl s_client -connect yourcompany.com:443 -tls1_3 -groups X25519MLKEM768:X25519 </dev/null 2>&1 | grep -i group
  4. 4. Scan again

    Run the check on your address again. Key exchange should now pass, and the grade moves with it.