improve comment to match the function definition

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
This commit is contained in:
Ashley Davis 2021-03-10 09:28:30 +00:00
parent 2404aceef4
commit ef5aa91f35
No known key found for this signature in database
GPG Key ID: DD14CC017E32BEB1

View File

@ -388,8 +388,8 @@ func GenerateTemplateFromCSRPEMWithUsages(csrPEM []byte, duration time.Duration,
}, nil
}
// SignCertificate returns a signed x509.Certificate object for the given
// *v1.Certificate crt.
// SignCertificate returns a signed *x509.Certificate given a template
// *x509.Certificate crt and an issuer.
// publicKey is the public key of the signee, and signerKey is the private
// key of the signer.
// It returns a PEM encoded copy of the Certificate as well as a *x509.Certificate