I think this is controlled by the GODEBUG setting `tlsrsakex` where the default changed from enabled in go1.21 to disabled in go1.22.
I don't think there's anything to do here as the new behavior is more correct and we aren't going to change the default GODEBUG for a previous version.
main » GODEBUG=tlsrsakex=1 go1.22.5 run .
2024/07/19 12:18:46 dial failed: websocket: bad handshake
exit status 1
main » GODEBUG=tlsrsakex=0 go1.22.5 run .
2024/07/19 12:18:56 connection ok
Originally posted by @seankhliao in #68522 (comment)
I don't think there's anything to do here as the new behavior is more correct and we aren't going to change the default GODEBUG for a previous version.
Originally posted by @seankhliao in #68522 (comment)