use backend directly
This commit is contained in:
parent
65ea5fbe2a
commit
9d8da8331d
|
@ -12,20 +12,22 @@ config.le.server = LE.stagingServer;
|
||||||
// Manual Registration
|
// Manual Registration
|
||||||
//
|
//
|
||||||
var le = LE.create(require('../backends/ursa'), config.le);
|
var le = LE.create(require('../backends/ursa'), config.le);
|
||||||
le.register({
|
le.backend.registerAsync({
|
||||||
agreeTos: true
|
agreeTos: true
|
||||||
, domains: ['example.com'] // CHANGE TO YOUR DOMAIN
|
, domains: ['example.com'] // CHANGE TO YOUR DOMAIN
|
||||||
, email: 'user@email.com' // CHANGE TO YOUR EMAIL
|
, email: 'user@example.com' // CHANGE TO YOUR EMAIL
|
||||||
}, function (err) {
|
}, function (err, body) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('[Error]: node-letsencrypt/examples/ursa');
|
console.error('[Error]: node-letsencrypt/examples/ursa');
|
||||||
console.error(err.stack);
|
console.error(err.stack);
|
||||||
} else {
|
} else {
|
||||||
console.log('success');
|
console.log('success', body);
|
||||||
}
|
}
|
||||||
|
|
||||||
plainServer.close();
|
plainServer.close();
|
||||||
tlsServer.close();
|
tlsServer.close();
|
||||||
|
}).then(function () {}, function (err) {
|
||||||
|
console.error(err.stack);
|
||||||
});
|
});
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue