Move call to ObtainSANCertificate

This commit is contained in:
xenolf 2015-12-16 11:23:38 +01:00
parent 5930ea52f0
commit 136cc73ff8

View file

@ -379,8 +379,8 @@ func (c *Client) RenewCertificate(cert CertificateResource, revokeOld bool, bund
continue continue
} }
domains = append(domains, sanDomain) domains = append(domains, sanDomain)
newCerts[0], failures = c.ObtainSANCertificate(domains, bundle)
} }
newCerts[0], failures = c.ObtainSANCertificate(domains, bundle)
} else { } else {
domains = append(domains, x509Cert.Subject.CommonName) domains = append(domains, x509Cert.Subject.CommonName)
newCerts, failures = c.ObtainCertificates(domains, bundle) newCerts, failures = c.ObtainCertificates(domains, bundle)