Update README.md

This commit is contained in:
AJ ONeal 2017-04-11 07:45:39 +00:00
parent 9998948332
commit 7bfc76ca47
1 changed files with 9 additions and 2 deletions

View File

@ -126,10 +126,13 @@ var leStore = require('le-store-certbot').create({
// ACME Challenge Handlers // ACME Challenge Handlers
var leChallenge = require('le-challenge-fs').create({ var leHttpChallenge = require('le-challenge-fs').create({
webrootPath: '~/letsencrypt/var/' // or template string such as webrootPath: '~/letsencrypt/var/' // or template string such as
, debug: false // '/srv/www/:hostname/.well-known/acme-challenge' , debug: false // '/srv/www/:hostname/.well-known/acme-challenge'
}); });
var leSniChallenge = require('le-challenge-sni').create({
, debug: false // '/srv/www/:hostname/.well-known/acme-challenge'
});
function leAgree(opts, agreeCb) { function leAgree(opts, agreeCb) {
@ -140,7 +143,11 @@ function leAgree(opts, agreeCb) {
le = LE.create({ le = LE.create({
server: LE.stagingServerUrl // or LE.productionServerUrl server: LE.stagingServerUrl // or LE.productionServerUrl
, store: leStore // handles saving of config, accounts, and certificates , store: leStore // handles saving of config, accounts, and certificates
, challenges: { 'http-01': leChallenge } // handles /.well-known/acme-challege keys and tokens , challenges: {
'http-01': leHttpChallenge // handles /.well-known/acme-challege keys and tokens
, 'tls-sni-01': leSniChallenge // handles generating a certificate with the correct name
, 'tls-sni-02': leSniChallenge
}
, challengeType: 'http-01' // default to this challenge type , challengeType: 'http-01' // default to this challenge type
, agreeToTerms: leAgree // hook to allow user to view and accept LE TOS , agreeToTerms: leAgree // hook to allow user to view and accept LE TOS
//, sni: require('le-sni-auto').create({}) // handles sni callback //, sni: require('le-sni-auto').create({}) // handles sni callback