mirror of
https://git.coolaj86.com/coolaj86/acme-dns-01-cli.js
synced 2025-04-21 13:20:39 +00:00
pass in keyAuth
This commit is contained in:
parent
48743260eb
commit
734136d671
16
test.js
Normal file
16
test.js
Normal 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);
|
Loading…
x
Reference in New Issue
Block a user