From c129167b35b6881843df01e45733f2e2baa03144 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 15 Dec 2015 15:20:03 +0000 Subject: [PATCH] challengePath => challenge.token --- lib/get-certificate.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/get-certificate.js b/lib/get-certificate.js index 813ae7e..47dd039 100644 --- a/lib/get-certificate.js +++ b/lib/get-certificate.js @@ -102,11 +102,9 @@ function getCert(options, cb) { thumbprint=cryptoUtil.thumbprint(state.accountKeyPair.publicKey); keyAuthorization=challenge.token+'.'+thumbprint; - challengePath='.well-known/acme-challenge/'+challenge.token; state.responseUrl=challenge.uri; - state.path=challengePath; - options.setChallenge(state.domain, '/'+challengePath, keyAuthorization, challengeDone); + options.setChallenge(state.domain, challenge.token, keyAuthorization, challengeDone); function challengeDone() { state.acme.post(state.responseUrl, { @@ -114,7 +112,7 @@ function getCert(options, cb) { keyAuthorization:keyAuthorization }, function(err, res, body) { ensureValidation(err, res, body, function unlink() { - options.removeChallenge(state.domain, '/'+challengePath, function () { + options.removeChallenge(state.domain, challenge.token, function () { // ignore }); });