1
0
mirror of https://github.com/golang/go synced 2024-11-13 18:10:24 -07:00

crypto/x509: document specifically that only v3 certificates are created.

Fixes #21593

Change-Id: I5d6c644ed1d60ae4610712155bae5cf13ee1f886
Reviewed-on: https://go-review.googlesource.com/79876
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Adam Langley 2017-11-25 10:54:18 -08:00 committed by Brad Fitzpatrick
parent 41d6c89e1e
commit 7da2f8278f

View File

@ -2050,7 +2050,7 @@ func signingParamsForPublicKey(pub interface{}, requestedSigAlgo SignatureAlgori
// just an empty SEQUENCE. // just an empty SEQUENCE.
var emptyASN1Subject = []byte{0x30, 0} var emptyASN1Subject = []byte{0x30, 0}
// CreateCertificate creates a new certificate based on a template. // CreateCertificate creates a new X.509v3 certificate based on a template.
// The following members of template are used: AuthorityKeyId, // The following members of template are used: AuthorityKeyId,
// BasicConstraintsValid, DNSNames, ExcludedDNSDomains, ExtKeyUsage, // BasicConstraintsValid, DNSNames, ExcludedDNSDomains, ExtKeyUsage,
// IsCA, KeyUsage, MaxPathLen, MaxPathLenZero, NotAfter, NotBefore, // IsCA, KeyUsage, MaxPathLen, MaxPathLenZero, NotAfter, NotBefore,