acme2: issuer name has changed
There is now Let's Encrypt R3 and Let's Encrypt R4 etc https://scotthelme.co.uk/lets-encrypts-new-root-and-intermediate-certificates/
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user