v3.0.7: private notify function

This commit is contained in:
AJ ONeal 2019-10-28 20:51:03 -06:00
parent 86068fe015
commit 333605d9b8
2 changed files with 11 additions and 2 deletions

11
acme.js
View File

@ -474,7 +474,7 @@ ACME._dryRun = function(me, realOptions, zonenames) {
var selected = []; var selected = [];
noopts.order._claims = claims.slice(0); noopts.order._claims = claims.slice(0);
noopts.notify = function(ev, params) { noopts.notify = function(ev, params) {
if ('challenge_select' === ev) { if ('_challenge_select' === ev) {
selected.push(params.challenge); selected.push(params.challenge);
} }
}; };
@ -893,6 +893,15 @@ ACME._setChallenges = function(me, options, order) {
placed.push(selected); placed.push(selected);
ACME._notify(me, options, 'challenge_select', { ACME._notify(me, options, 'challenge_select', {
// API-locked // 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( altname: ACME._untame(
claim.identifier.value, claim.identifier.value,
claim.wildcard claim.wildcard

View File

@ -1,6 +1,6 @@
{ {
"name": "@root/acme", "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", "description": "Free SSL certificates for Node.js and Browsers. Issued via Let's Encrypt",
"homepage": "https://rootprojects.org/acme/", "homepage": "https://rootprojects.org/acme/",
"main": "acme.js", "main": "acme.js",