Skip to content

Commit

Permalink
Prefer HTTP challenge for regular certs
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco authored and leo committed May 18, 2018
1 parent 6cbd615 commit 0371874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/sh/commands/alias/create-cert-for-alias.js
Expand Up @@ -50,7 +50,7 @@ async function createCertificateForAlias(output: Output, now: Now, alias: string
// This is completely unexpected and should never happens
if (cert instanceof Errors.CantGenerateWildcardCert) {
throw cert
}
}
}

cancelMessage()
Expand Down Expand Up @@ -78,7 +78,7 @@ function getCertRequestSettings(alias: string, domain: string, subdomain: string
} else {
if(subdomain.includes('.')) {
// Nested subdomains can't use wildcards
return { cns: [alias], preferDNS: true }
return { cns: [alias], preferDNS: false }
} else {
return { cns: [domain, `*.${domain}`], preferDNS: false }
}
Expand Down

0 comments on commit 0371874

Please sign in to comment.