diff --git a/src/reverseproxy.js b/src/reverseproxy.js index b8e6b6ae0..d1eaf3955 100644 --- a/src/reverseproxy.js +++ b/src/reverseproxy.js @@ -109,7 +109,7 @@ function providerMatchesSync(domainObject, certFilePath, apiOptions) { const domain = subject.substr(subject.indexOf('=') + 1).trim(); // subject can be /CN=, CN=, CN = and other forms const issuer = subjectAndIssuer.match(/^issuer=(.*)$/m)[1]; const isWildcardCert = domain.includes('*'); - const isLetsEncryptProd = issuer.includes('Let\'s Encrypt Authority'); + const isLetsEncryptProd = issuer.includes('Let\'s Encrypt'); const issuerMismatch = (apiOptions.prod && !isLetsEncryptProd) || (!apiOptions.prod && isLetsEncryptProd); // bare domain is not part of wildcard SAN