From 7da2f8278f10ed389e0d96cb43e5445d80d21f9b Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Sat, 25 Nov 2017 10:54:18 -0800 Subject: [PATCH] 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 --- src/crypto/x509/x509.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/x509/x509.go b/src/crypto/x509/x509.go index 0b8652209f..4c9182d902 100644 --- a/src/crypto/x509/x509.go +++ b/src/crypto/x509/x509.go @@ -2050,7 +2050,7 @@ func signingParamsForPublicKey(pub interface{}, requestedSigAlgo SignatureAlgori // just an empty SEQUENCE. 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, // BasicConstraintsValid, DNSNames, ExcludedDNSDomains, ExtKeyUsage, // IsCA, KeyUsage, MaxPathLen, MaxPathLenZero, NotAfter, NotBefore,