Commit ac66bb34 authored by Emmanuel Odeke's avatar Emmanuel Odeke Committed by Russ Cox

crypto/x509: fix typo in docs for CreateCertificateRequest

Update the doc for CreateCertificateRequest
to state that it creates a
  `new certificate request`
instead of just a
  `new certificate`

Fixes #14649.

Change-Id: Ibbbcf91d74168998990990e78e5272a6cf294d51
Reviewed-on: https://go-review.googlesource.com/23204Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
parent f962e6e0
...@@ -1853,8 +1853,8 @@ func parseCSRExtensions(rawAttributes []asn1.RawValue) ([]pkix.Extension, error) ...@@ -1853,8 +1853,8 @@ func parseCSRExtensions(rawAttributes []asn1.RawValue) ([]pkix.Extension, error)
return ret, nil return ret, nil
} }
// CreateCertificateRequest creates a new certificate based on a template. The // CreateCertificateRequest creates a new certificate request based on a template.
// following members of template are used: Subject, Attributes, // The following members of template are used: Subject, Attributes,
// SignatureAlgorithm, Extensions, DNSNames, EmailAddresses, and IPAddresses. // SignatureAlgorithm, Extensions, DNSNames, EmailAddresses, and IPAddresses.
// The private key is the private key of the signer. // The private key is the private key of the signer.
// //
......
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