2
0
mirror of https://git.coolaj86.com/coolaj86/acme-http-01-cli.js synced 2025-03-14 11:00:38 +00:00

20 lines
540 B
JavaScript
Raw Normal View History

'use strict';
var tester = require('greenlock-challenge-test');
var type = 'http-01';
//var challenger = require('greenlock-challenge-http').create({});
var challenger = require('./').create({});
// The dry-run tests can pass on, literally, 'example.com'
// but the integration tests require that you have control over the domain
var domain = 'example.com';
tester.test(type, domain, challenger).then(function () {
console.info("PASS");
}).catch(function (err) {
console.error("FAIL");
console.error(err);
2019-04-06 02:17:56 -06:00
process.exit(19);
});