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
//
var le = LE.create(require('../backends/ursa'), config.le);
le.register({
le.backend.registerAsync({
agreeTos: true
, domains: ['example.com'] // CHANGE TO YOUR DOMAIN
, email: 'user@email.com' // CHANGE TO YOUR EMAIL
}, function (err) {
, email: 'user@example.com' // CHANGE TO YOUR EMAIL
}, function (err, body) {
if (err) {
console.error('[Error]: node-letsencrypt/examples/ursa');
console.error(err.stack);
} else {
console.log('success');
console.log('success', body);
}
plainServer.close();
tlsServer.close();
}).then(function () {}, function (err) {
console.error(err.stack);
});
//