Comparing version 1.7.5 to 1.7.6
16
node.js
@@ -381,10 +381,20 @@ // Copyright 2018 AJ ONeal. All rights reserved | ||
Object.keys(challenge).forEach(function (key) { | ||
auth[key] = challenge[key]; | ||
// don't confused devs with the id url | ||
if ('url' === key) { | ||
//auth.uri = challenge.url; | ||
} else { | ||
auth[key] = challenge[key]; | ||
} | ||
}); | ||
// batteries-included helpers | ||
auth.hostname = request.identifier.value; | ||
auth.hostname = auth.identifier.value; | ||
// because I'm not 100% clear if the wildcard identifier does or doesn't have the leading *. in all cases | ||
auth.altname = ACME._untame(auth.identifier.value, auth.wildcard); | ||
auth.thumbprint = me.RSA.thumbprint(options.accountKeypair); | ||
// keyAuthorization = token || '.' || base64url(JWK_Thumbprint(accountKey)) | ||
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.dnsHost = dnsPrefix + '.' + auth.hostname.replace('*.', ''); | ||
@@ -394,4 +404,2 @@ auth.dnsAuthorization = ACME._toWebsafeBase64( | ||
); | ||
// because I'm not 100% clear if the wildcard identifier does or doesn't have the leading *. in all cases | ||
auth.altname = ACME._untame(request.identifier.value, request.wildcard); | ||
@@ -398,0 +406,0 @@ return auth; |
{ | ||
"name": "acme-v2", | ||
"version": "1.7.5", | ||
"version": "1.7.6", | ||
"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,0 +5,0 @@ "homepage": "https://git.coolaj86.com/coolaj86/acme-v2.js", |
77857
1305