This commit is contained in:
2016-10-24 01:42:31 +02:00
parent b72f6dfac3
commit c4b72aebf8
3 changed files with 11 additions and 19 deletions

View File

@ -45,8 +45,10 @@ export class Letsencrypt {
fullchainPath: ':configDir/live/:hostname/fullchain.pem',
certPath: ':configDir/live/:hostname/cert.pem',
chainPath: ':configDir/live/:hostname/chain.pem',
agreeToTerms: true,
debug: true
agreeToTerms: (opts, agreeCb) => {
agreeCb(null, opts.tosUrl)
},
debug: false
})
}
@ -62,8 +64,7 @@ export class Letsencrypt {
domains: [domainNameArg],
email: 'domains@lossless.org',
agreeTos: true,
rsaKeySize: 2048,
challengeType: 'dns-01'
rsaKeySize: 2048
}).then(
(results) => {
plugins.beautylog.success(`Got certificates for ${domainNameArg}`)
@ -129,9 +130,4 @@ export class Letsencrypt {
}
}
}
private _leAgree(opts, agreeCb) {
// opts = { email, domains, tosUrl }
agreeCb(null, opts.tosUrl);
}
}