Remove unused arg from GenerateTemplate
Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
parent
6f291b9311
commit
03c6f1229f
@ -111,7 +111,7 @@ func (c *CA) obtainCertificate(crt *v1alpha1.Certificate, signeeKey interface{},
|
||||
return nil, fmt.Errorf("error getting issuer private key: %s", err.Error())
|
||||
}
|
||||
|
||||
template, err := pki.GenerateTemplate(c.issuer, crt, nil)
|
||||
template, err := pki.GenerateTemplate(c.issuer, crt)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -91,7 +91,7 @@ func (c *SelfSigned) obtainCertificate(crt *v1alpha1.Certificate, privateKey cry
|
||||
return nil, err
|
||||
}
|
||||
|
||||
template, err := pki.GenerateTemplate(c.issuer, crt, nil)
|
||||
template, err := pki.GenerateTemplate(c.issuer, crt)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@ func GenerateCSR(issuer v1alpha1.GenericIssuer, crt *v1alpha1.Certificate) (*x50
|
||||
// This should create a Certificate template that is equivalent to the CertificateRequest
|
||||
// generated by GenerateCSR.
|
||||
// The PublicKey field must be populated by the caller.
|
||||
func GenerateTemplate(issuer v1alpha1.GenericIssuer, crt *v1alpha1.Certificate, serialNo *big.Int) (*x509.Certificate, error) {
|
||||
func GenerateTemplate(issuer v1alpha1.GenericIssuer, crt *v1alpha1.Certificate) (*x509.Certificate, error) {
|
||||
commonName := CommonNameForCertificate(crt)
|
||||
dnsNames := DNSNamesForCertificate(crt)
|
||||
organization := OrganizationForCertificate(crt)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user