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-19 13:59:33 +00:00
parent 2404aceef4
commit ef5aa91f35
+2 -2
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