*Add xor on staging mode and the letsencrypt cert to reprocess if we are live with a staging cert or on staging mode with a live cert.

This commit is contained in:
Derrick Hammer 2022-07-22 21:10:14 -04:00
parent e44a87e379
commit b640084920
1 changed files with 7 additions and 0 deletions

View File

@ -111,6 +111,13 @@ async function setupSSl() {
if (certInfo?.domains.commonName === config.str("domain")) { if (certInfo?.domains.commonName === config.str("domain")) {
domainValid = true; domainValid = true;
} }
if (
Boolean(isSSlStaging()) !==
Boolean(certInfo?.issuer.commonName.toLowerCase().includes("staging"))
) {
domainValid = false;
}
} }
if (dateValid && domainValid) { if (dateValid && domainValid) {