From 0b8aec0f8cee78fb5bec6f7d57115d6bd305bd22 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 7 Apr 2019 21:08:58 -0600 Subject: [PATCH] v1.7.7: revert v1.7.6 --- node.js | 8 ++------ package.json | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/node.js b/node.js index 85154bf..2dfc3d8 100644 --- a/node.js +++ b/node.js @@ -379,11 +379,7 @@ ACME._challengeToAuth = function (me, options, request, challenge, dryrun) { // (note the duplicate status overwrites the one above, but they should be the same) Object.keys(challenge).forEach(function (key) { // don't confused devs with the id url - if ('url' === key) { - //auth.uri = challenge.url; - } else { - auth[key] = challenge[key]; - } + auth[key] = challenge[key]; }); // batteries-included helpers @@ -395,7 +391,7 @@ ACME._challengeToAuth = function (me, options, request, challenge, dryrun) { auth.keyAuthorization = challenge.token + '.' + auth.thumbprint; // conflicts with ACME challenge id url, if we ever decide to use it, but this just makes sense // (as opposed to httpUrl or challengeUrl or uri, etc - I'd be happier to call the id url a uri) - auth.url = 'http://' + auth.identifier.value + ACME.challengePrefixes['http-01'] + '/' + auth.token; + auth.challengeUrl = 'http://' + auth.identifier.value + ACME.challengePrefixes['http-01'] + '/' + auth.token; auth.dnsHost = dnsPrefix + '.' + auth.hostname.replace('*.', ''); auth.dnsAuthorization = ACME._toWebsafeBase64( require('crypto').createHash('sha256').update(auth.keyAuthorization).digest('base64') diff --git a/package.json b/package.json index 98ef2a3..3da21c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "acme-v2", - "version": "1.7.6", + "version": "1.7.7", "description": "Free SSL. A framework for building Let's Encrypt v2 clients, and other ACME v2 (draft 11) clients. Successor to le-acme-core.js", "homepage": "https://git.coolaj86.com/coolaj86/acme-v2.js", "main": "node.js",