pass in keyAuth

This commit is contained in:
AJ ONeal 2016-10-17 15:44:49 -06:00
parent 48743260eb
commit 734136d671
1 changed files with 16 additions and 0 deletions

16
test.js Normal file
View File

@ -0,0 +1,16 @@
'use strict';
var leChallengeDns = require('./').create({ });
var opts = leChallengeDns.getOptions();
var domain = 'test.daplie.me';
var challenge = 'xxx-acme-challenge-xxx';
var keyAuthorization = 'xxx-acme-challenge-xxx.xxx-acme-authorization-xxx';
setTimeout(function () {
leChallengeDns.test(opts, domain, challenge, keyAuthorization, function (err) {
// if there's an error, there's a problem
if (err) { throw err; }
console.log('test passed');
});
}, 300);