acme-http-01-test.js/example.js

16 lines
519 B
JavaScript
Raw Normal View History

2019-04-07 21:55:48 +00:00
'use strict';
var tester = require('greenlock-challenge-test');
var challenger = require('greenlock-challenge-http').create({});
//var challenger = require('greenlock-challenge-dns').create({});
//var challenger = require('./YOUR-CHALLENGE-STRATEGY').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('http-01', domain, challenger).then(function () {
console.info("PASS");
});