]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: generate random serial numbers.
authorAdam Langley <agl@golang.org>
Sun, 15 Dec 2013 17:57:57 +0000 (12:57 -0500)
committerAdam Langley <agl@golang.org>
Sun, 15 Dec 2013 17:57:57 +0000 (12:57 -0500)
commit1dabd716660c182c05c003c198fa3ea4feba6c89
tree46c06c47f841d10204f2a5849c88bda3754e1032
parent1d546005af72e186c319722ccd293b64246488e3
crypto/tls: generate random serial numbers.

NSS (used in Firefox and Chrome) won't accept two certificates with the same
issuer and serial. But this causes problems with self-signed certificates
with a fixed serial number.

This change randomises the serial numbers in the certificates generated by
generate_cert.go.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/38290044
src/pkg/crypto/tls/generate_cert.go