]> Cypherpunks.ru repositories - gostls13.git/commit
crypto/x509: revert serial length restriction
authorRoland Shoemaker <roland@golang.org>
Thu, 21 Apr 2022 20:47:26 +0000 (13:47 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 21 Apr 2022 21:06:36 +0000 (21:06 +0000)
commit4d96c3cdadb7de81ced18eceaa906f35730523f4
treebc8b4475e3cf73789f3eb92d05c9649d695ef11e
parentaac1d3a1b12a290805ca35ff268738fb334b1ca4
crypto/x509: revert serial length restriction

This reverts CL400377, which restricted serials passed to
x509.CreateCertificate to <= 20 octets. Unfortunately this turns out to
be something _a lot_ of people get wrong. Since it's not particularly
obvious how to properly generate conformant serials, until we provide
an easier way for people to get this right, reverting this restriction
makes sense (possible solution discussed in #52444.)

Change-Id: Ia85a0ffe61e2e547abdaf1389c3e1ad29e28a2be
Reviewed-on: https://go-review.googlesource.com/c/go/+/401657
Reviewed-by: Roland Shoemaker <roland@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Auto-Submit: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go