cert: add message for fallback cert
This commit is contained in:
@@ -657,13 +657,16 @@ async function renewCerts(options, auditSource, progressCallback) {
|
||||
|
||||
const domainObject = domainObjectMap[location.domain];
|
||||
if (location.certificate?.key && location.certificate?.cert) continue; // user cert
|
||||
if (domainObject.tlsConfig.provider === 'fallback') continue; // fallback certs
|
||||
if (domainObject.tlsConfig.provider === 'fallback') {
|
||||
progressCallback({ message: `${location.fqdn} is using fallback certs` });
|
||||
continue;
|
||||
}
|
||||
|
||||
if (await needsRenewal(location.fqdn, domainObject)) {
|
||||
await renewCert(location.fqdn, domainObject);
|
||||
renewedCertificateNames.push(getAcmeCertificateName(location.fqdn, domainObject));
|
||||
} else {
|
||||
progressCallback({ percent, message: `Cert of ${location.fqdn} does not require renewal` });
|
||||
progressCallback({ message: `Cert of ${location.fqdn} does not require renewal` });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user