Added to read json for the renew cert and fixed bug where on creation of a new cert the old NameServer ware used

This commit is contained in:
sickjuicy
2024-12-01 04:25:01 +01:00
parent 57e72a8a90
commit eb91865b70
2 changed files with 31 additions and 12 deletions

View File

@@ -393,8 +393,8 @@ func (a *AutoRenewer) renewExpiredDomains(certs []*ExpiredCerts) ([]string, erro
// Extract DNS servers from the certificate info if available
var dnsServers string
if certInfo.DNSServers != "" {
dnsServers = certInfo.DNSServers
if len(certInfo.DNSServers) > 0 {
dnsServers = strings.Join(certInfo.DNSServers, ",")
}
_, err = a.AcmeHandler.ObtainCert(expiredCert.Domains, certName, a.RenewerConfig.Email, certInfo.AcmeName, certInfo.AcmeUrl, certInfo.SkipTLS, certInfo.UseDNS, certInfo.PropTimeout, dnsServers)