From 333605d9b842da5f26766a649314ef0e7e12ea00 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 28 Oct 2019 20:51:03 -0600 Subject: [PATCH] v3.0.7: private notify function --- acme.js | 11 ++++++++++- package.json | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/acme.js b/acme.js index b32a60f..f3ceddc 100644 --- a/acme.js +++ b/acme.js @@ -474,7 +474,7 @@ ACME._dryRun = function(me, realOptions, zonenames) { var selected = []; noopts.order._claims = claims.slice(0); noopts.notify = function(ev, params) { - if ('challenge_select' === ev) { + if ('_challenge_select' === ev) { selected.push(params.challenge); } }; @@ -893,6 +893,15 @@ ACME._setChallenges = function(me, options, order) { placed.push(selected); ACME._notify(me, options, 'challenge_select', { // API-locked + altname: ACME._untame( + claim.identifier.value, + claim.wildcard + ), + type: selected.type, + dnsHost: selected.dnsHost, + keyAuthorization: selected.keyAuthorization + }); + ACME._notify(me, options, '_challenge_select', { altname: ACME._untame( claim.identifier.value, claim.wildcard diff --git a/package.json b/package.json index b2701ac..3b41d43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@root/acme", - "version": "3.0.6", + "version": "3.0.7", "description": "Free SSL certificates for Node.js and Browsers. Issued via Let's Encrypt", "homepage": "https://rootprojects.org/acme/", "main": "acme.js",