Skip to content

crypto/tls: Using GODEBUG=tlsrsakex=1 behaves inconsistently between Go 1.22 and master #68528

Description

@cuiweixie
          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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions