Skip to content

crypto/tls: disable SHA-1 signature algorithms in TLS 1.2 #72883

Description

@FiloSottile

In TLS 1.2, we still advertise and select (as the final preference) SHA-1 signature algorithms, rsa_pkcs1_sha1 and ecdsa_sha1. (In TLS 1.3 we reject them. In TLS 1.0 they are the only option.)

RFC 9155 made rejecting them a MUST, and we're overdue anyway.

I propose we implement RFC 9155 and remove support for SHA-1 signature algorithms in TLS 1.2.

The GODEBUG setting tlssha1=1 can be used to revert to the previous behavior.

/cc @golang/security

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeLibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolProposalProposal-AcceptedProposal-CryptoProposal related to crypto packages or other security issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions