]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: don't add an AuthorityKeyId to self-signed certificates.
authorAdam Langley <agl@golang.org>
Tue, 12 Apr 2016 18:14:25 +0000 (11:14 -0700)
committerAdam Langley <agl@golang.org>
Thu, 14 Apr 2016 16:51:48 +0000 (16:51 +0000)
commitb623b71509b2d24df915d5bc68602e1c6edf38ca
treed0f09827bf2bfc97a20d15457da9fdef1fc08881
parenteede112492174c8b0f72845e6ac9edf1bd481f41
crypto/x509: don't add an AuthorityKeyId to self-signed certificates.

The AuthorityKeyId is optional for self-signed certificates, generally
useless, and takes up space. This change causes an AuthorityKeyId not to
be added to self-signed certificates, although it can still be set in
the template if the caller really wants to include it.

Fixes #15194.

Change-Id: If5d3c3d9ca9ae5fe67458291510ec7140829756e
Reviewed-on: https://go-review.googlesource.com/21895
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go