Compare commits
No commits in common. "89487c203003913613598ddbc502b2acd8ccdbaf" and "ba71e12ff2ae9e1b752d097b0a0dd363c0f7f217" have entirely different histories.
89487c2030
...
ba71e12ff2
19
node.js
19
node.js
|
@ -22,20 +22,15 @@ ACME.challengeTests = {
|
|||
return true;
|
||||
}
|
||||
|
||||
err = new Error(
|
||||
"Error: Failed HTTP-01 Dry Run.\n"
|
||||
+ "curl '" + url + "' does not return '" + auth.keyAuthorization + "'\n"
|
||||
+ "See https://git.coolaj86.com/coolaj86/acme-v2.js/issues/4"
|
||||
);
|
||||
err.code = 'E_FAIL_DRY_CHALLENGE';
|
||||
err = new Error("self check does not pass");
|
||||
err.code = 'E_RETRY';
|
||||
return Promise.reject(err);
|
||||
});
|
||||
}
|
||||
, 'dns-01': function (me, auth) {
|
||||
var hostname = ACME.challengePrefixes['dns-01'] + '.' + auth.hostname;
|
||||
return me._dig({
|
||||
type: 'TXT'
|
||||
, name: hostname
|
||||
, name: ACME.challengePrefixes['dns-01'] + '.' + auth.hostname
|
||||
}).then(function (ans) {
|
||||
var err;
|
||||
|
||||
|
@ -45,12 +40,8 @@ ACME.challengeTests = {
|
|||
return true;
|
||||
}
|
||||
|
||||
err = new Error(
|
||||
"Error: Failed DNS-01 Dry Run.\n"
|
||||
+ "dig TXT '" + hostname + "' does not return '" + auth.dnsAuthorization + "'\n"
|
||||
+ "See https://git.coolaj86.com/coolaj86/acme-v2.js/issues/4"
|
||||
);
|
||||
err.code = 'E_FAIL_DRY_CHALLENGE';
|
||||
err = new Error("self check does not pass");
|
||||
err.code = 'E_RETRY';
|
||||
return Promise.reject(err);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "acme-v2",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.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",
|
||||
"homepage": "https://git.coolaj86.com/coolaj86/acme-v2.js",
|
||||
"main": "node.js",
|
||||
|
|
Loading…
Reference in New Issue