Fix linting errors.
This commit is contained in:
parent
08e75b614e
commit
e7a6c46e54
1 changed files with 2 additions and 6 deletions
|
@ -148,12 +148,8 @@ func (s *StepCAS) GetCertificateAuthority(req *apiv1.GetCertificateAuthorityRequ
|
||||||
|
|
||||||
func (s *StepCAS) createCertificate(cr *x509.CertificateRequest, lifetime time.Duration) (*x509.Certificate, []*x509.Certificate, error) {
|
func (s *StepCAS) createCertificate(cr *x509.CertificateRequest, lifetime time.Duration) (*x509.Certificate, []*x509.Certificate, error) {
|
||||||
sans := make([]string, 0, len(cr.DNSNames)+len(cr.EmailAddresses)+len(cr.IPAddresses)+len(cr.URIs))
|
sans := make([]string, 0, len(cr.DNSNames)+len(cr.EmailAddresses)+len(cr.IPAddresses)+len(cr.URIs))
|
||||||
for _, s := range cr.DNSNames {
|
sans = append(sans, cr.DNSNames...)
|
||||||
sans = append(sans, s)
|
sans = append(sans, cr.EmailAddresses...)
|
||||||
}
|
|
||||||
for _, s := range cr.EmailAddresses {
|
|
||||||
sans = append(sans, s)
|
|
||||||
}
|
|
||||||
for _, ip := range cr.IPAddresses {
|
for _, ip := range cr.IPAddresses {
|
||||||
sans = append(sans, ip.String())
|
sans = append(sans, ip.String())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue