Update README.md
This commit is contained in:
parent
9998948332
commit
7bfc76ca47
11
README.md
11
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
|
||||
|
|
Loading…
Reference in New Issue