cert: add message for fallback cert

This commit is contained in:
Girish Ramakrishnan
2022-11-13 16:59:22 +01:00
parent 2515a0f18f
commit 3caf77cee6

View File

@@ -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` });
}
}