Skip to content

Commit

Permalink
Migrate test network domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez Baquero committed Jul 6, 2023
1 parent 8f17af1 commit c6dc0b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions container/shim/src/modules/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ async function checkCertValidity(certBuffer, registerOptions) {
valid = false;
}

if (NETWORK === "test" && cert.subjectAltName && !cert.subjectAltName.includes("l1s.saturn-test.ms")) {
debug("Certificate is missing l1s.saturn-test.ms SAN, getting a new one...");
valid = false;
}

if (!valid) {
try {
await getNewTLSCert(registerOptions);
Expand Down

0 comments on commit c6dc0b2

Please sign in to comment.