New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

acme-v2

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acme-v2 - npm Package Compare versions

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc