]> Cypherpunks.ru repositories - gostls13.git/blobdiff - doc/godebug.md
crypto/tls: add GODEBUG to control max RSA key size
[gostls13.git] / doc / godebug.md
index 7a6d70e48782ad958135181dc64c551766979e2e..d26555503e0522072b8ed75d7e63801547794c33 100644 (file)
@@ -126,6 +126,14 @@ for example,
 see the [runtime documentation](/pkg/runtime#hdr-Environment_Variables)
 and the [go command documentation](/cmd/go#hdr-Build_and_test_caching).
 
+### Go 1.22
+
+Go 1.22 adds a configurable limit to control the maximum acceptable RSA key size
+that can be used in TLS handshakes, controlled by the [`tlsmaxrsasize`setting](/pkg/crypto/tls#Conn.Handshake).
+The default is tlsmaxrsasize=8192, limiting RSA to 8192-bit keys. To avoid
+denial of service attacks, this setting and default was backported to Go
+1.19.13, Go 1.20.8, and Go 1.21.1.
+
 ### Go 1.21
 
 Go 1.21 made it a run-time error to call `panic` with a nil interface value,