From 7bfc76ca475059f6a14c4a392563070deb2c86de Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 11 Apr 2017 07:45:39 +0000 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 90a0ead..30a1aa3 100644 --- a/README.md +++ b/README.md @@ -126,10 +126,13 @@ var leStore = require('le-store-certbot').create({ // 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 , 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) { @@ -140,7 +143,11 @@ function leAgree(opts, agreeCb) { le = LE.create({ server: LE.stagingServerUrl // or LE.productionServerUrl , 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 , agreeToTerms: leAgree // hook to allow user to view and accept LE TOS //, sni: require('le-sni-auto').create({}) // handles sni callback