mirror of
https://git.coolaj86.com/coolaj86/acme-dns-01-cli.js
synced 2025-04-21 21:30:38 +00:00
23 lines
554 B
JavaScript
23 lines
554 B
JavaScript
'use strict';
|
|
|
|
var tester = require('acme-dns-01-test');
|
|
|
|
var type = 'dns-01';
|
|
var challenger = require('./index.js').create({});
|
|
|
|
// The dry-run tests can pass on, literally, 'example.com'
|
|
// but the integration tests require that you have control over the domain
|
|
var zone = 'example.com';
|
|
|
|
tester
|
|
// will test example.com, foo.example.com, *.foo.example.com
|
|
.testZone(type, zone, challenger)
|
|
.then(function() {
|
|
console.info('PASS');
|
|
})
|
|
.catch(function(err) {
|
|
console.error('FAIL');
|
|
console.error(err);
|
|
process.exit(20);
|
|
});
|