Browse Source

v1.7.7: revert v1.7.6

tags/v1.7.7
AJ ONeal 5 months ago
parent
commit
0b8aec0f8c
2 changed files with 3 additions and 7 deletions
  1. 2
    6
      node.js
  2. 1
    1
      package.json

+ 2
- 6
node.js View File

@@ -379,11 +379,7 @@ ACME._challengeToAuth = function (me, options, request, challenge, dryrun) {
379 379
   // (note the duplicate status overwrites the one above, but they should be the same)
380 380
   Object.keys(challenge).forEach(function (key) {
381 381
     // don't confused devs with the id url
382
-    if ('url' === key) {
383
-      //auth.uri = challenge.url;
384
-    } else {
385
-      auth[key] = challenge[key];
386
-    }
382
+    auth[key] = challenge[key];
387 383
   });
388 384
 
389 385
   // batteries-included helpers
@@ -395,7 +391,7 @@ ACME._challengeToAuth = function (me, options, request, challenge, dryrun) {
395 391
   auth.keyAuthorization = challenge.token + '.' + auth.thumbprint;
396 392
   // conflicts with ACME challenge id url, if we ever decide to use it, but this just makes sense
397 393
   // (as opposed to httpUrl or challengeUrl or uri, etc - I'd be happier to call the id url a uri)
398
-  auth.url = 'http://' + auth.identifier.value + ACME.challengePrefixes['http-01'] + '/' + auth.token;
394
+  auth.challengeUrl = 'http://' + auth.identifier.value + ACME.challengePrefixes['http-01'] + '/' + auth.token;
399 395
   auth.dnsHost = dnsPrefix + '.' + auth.hostname.replace('*.', '');
400 396
   auth.dnsAuthorization = ACME._toWebsafeBase64(
401 397
     require('crypto').createHash('sha256').update(auth.keyAuthorization).digest('base64')

+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "acme-v2",
3
-  "version": "1.7.6",
3
+  "version": "1.7.7",
4 4
   "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",
5 5
   "homepage": "https://git.coolaj86.com/coolaj86/acme-v2.js",
6 6
   "main": "node.js",

Loading…
Cancel
Save