Commit 7853b090 authored by Adam Langley's avatar Adam Langley

crypto/x509: CreateCertificateRequest reads ExtraExtensions, not Extensions.

Fixes #18899.

Change-Id: I6a4bf0aad9cf1dbe6691ba4e4c478fcb33c44528
Reviewed-on: https://go-review.googlesource.com/36558Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 95011d4e
...@@ -2033,7 +2033,7 @@ func parseCSRExtensions(rawAttributes []asn1.RawValue) ([]pkix.Extension, error) ...@@ -2033,7 +2033,7 @@ func parseCSRExtensions(rawAttributes []asn1.RawValue) ([]pkix.Extension, error)
// CreateCertificateRequest creates a new certificate request based on a template. // CreateCertificateRequest creates a new certificate request based on a template.
// The following members of template are used: Subject, Attributes, // The following members of template are used: Subject, Attributes,
// SignatureAlgorithm, Extensions, DNSNames, EmailAddresses, and IPAddresses. // SignatureAlgorithm, ExtraExtensions, DNSNames, EmailAddresses, and IPAddresses.
// The private key is the private key of the signer. // The private key is the private key of the signer.
// //
// The returned slice is the certificate request in DER encoding. // The returned slice is the certificate request in DER encoding.
......
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