Merge pull request #967 from munnerz/unused-args
Remove unused arg from GenerateTemplate
This commit is contained in:
commit
9eab875005
@ -114,7 +114,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
|
||||
}
|
||||
|
||||
@ -124,7 +124,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