From 740558c30fabb61f64aee9c97620b0ec2e3c3f80 Mon Sep 17 00:00:00 2001 From: Ben Schmidt Date: Sat, 8 Oct 2016 22:29:17 +1100 Subject: [PATCH] use le-challenge-sni for tls-sni-01 challenges --- index.js | 2 +- package.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b78eedf..3e669ab 100644 --- a/index.js +++ b/index.js @@ -82,7 +82,7 @@ LE.create = function (le) { le.challenges['http-01'] = require('le-challenge-fs').create({ debug: le.debug }); } if (!le.challenges['tls-sni-01']) { - le.challenges['tls-sni-01'] = le.challenges['http-01']; + le.challenges['tls-sni-01'] = require('le-challenge-sni').create({ debug: le.debug }); } if (!le.challenges['dns-01']) { try { diff --git a/package.json b/package.json index 99d51bc..c6f75ba 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,9 @@ "url": "https://github.com/Daplie/node-letsencrypt/issues" }, "homepage": "https://github.com/Daplie/node-letsencrypt#readme", - "devDependencies": {}, + "devDependencies": { + "request": "^2.75.0" + }, "optionalDependencies": {}, "dependencies": { "asn1js": "^1.2.12", @@ -38,6 +40,7 @@ "homedir": "^0.6.0", "le-acme-core": "^2.0.5", "le-challenge-fs": "^2.0.2", + "le-challenge-sni": "^2.0.0", "le-sni-auto": "^2.0.1", "le-store-certbot": "^2.0.3", "localhost.daplie.com-certificates": "^1.2.3",