use backend directly

This commit is contained in:
AJ ONeal 2015-12-15 13:28:52 +00:00
parent 65ea5fbe2a
commit 9d8da8331d
1 changed files with 7 additions and 5 deletions

View File

@ -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);
}); });
// //