go /
go /
ca3ff9251dbe34edb539b661a30222d0f3d755bd crypto/x509: set default signature hash to SHA256 and allow override.
Previously the hash used when signing an X.509 certificate was fixed
and, for RSA, it was fixed to SHA1. Since Microsoft have announced the
deprecation of SHA1 in X.509 certificates, this change switches the
default to SHA256.
It also allows the hash function to be controlled by the caller by
setting the SignatureAlgorithm field of the template.
[1] http://blogs.technet.com/b/pki/archive/2013/11/12/sha1-deprecation-policy.aspx
Fixes #5302.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/40720047
2 files changed