Commit 7da2f827 authored by Adam Langley's avatar Adam Langley Committed by Brad Fitzpatrick

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

Fixes #21593

Change-Id: I5d6c644ed1d60ae4610712155bae5cf13ee1f886
Reviewed-on: https://go-review.googlesource.com/79876Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 41d6c89e
...@@ -2050,7 +2050,7 @@ func signingParamsForPublicKey(pub interface{}, requestedSigAlgo SignatureAlgori ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment