Skip to content

Go 1.25 "TLS Handshake failed: cannot read handshake packet: EOF" #302

@jhw0604

Description

@jhw0604

Describe the bug
Golang 1.25, the message TLS Handshake failed: cannot read handshake packet: EOF appears.

To Reproduce
Golang 1.24 and earlier work fine
but starting with 1.25, the message TLS Handshake failed: cannot read handshake packet: EOF appears.
If you set the environment variable GODEBUG=tlssha1=1 or add encrypt=disable to the connection string, Go will work properly.

Additional context
You can find the related text "SHA-1 signature algorithms are now disallowed in TLS 1.2 handshakes, per RFC 9155"

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions