From dedb59e4133563a655d9823988f5da66acb24b37 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 27 Oct 2016 03:00:40 -0600 Subject: [PATCH] pass homedir --- bin/serve-https.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/serve-https.js b/bin/serve-https.js index 44f4120..dd665ff 100755 --- a/bin/serve-https.js +++ b/bin/serve-https.js @@ -122,7 +122,11 @@ function createServer(port, pubdir, content, opts) { , 'dns-01': leChallengeDdns } , challengeType: (opts.tunnel ? 'http-01' : 'dns-01') - , store: require('le-store-certbot').create({ webrootPath: webrootPath, homedir: opts.homedir }) + , store: require('le-store-certbot').create({ + webrootPath: webrootPath + , configDir: path.join((opts.homedir || '~'), 'letsencrypt', 'etc') + , homedir: opts.homedir + }) , webrootPath: webrootPath // You probably wouldn't need to replace the default sni handler