2015-12-13 16:50:04 +00:00
|
|
|
/*!
|
|
|
|
* letiny
|
|
|
|
* Copyright(c) 2015 Anatol Sommer <anatol@anatol.at>
|
|
|
|
* Some code used from https://github.com/letsencrypt/boulder/tree/master/test/js
|
|
|
|
* MPL 2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2015-12-15 14:33:53 +00:00
|
|
|
exports.Acme = require('acme-client');
|
|
|
|
exports.registerNewAccount = require('register-new-account');
|
|
|
|
exports.getCertificate = require('get-certificate');
|
2015-12-15 14:35:58 +00:00
|
|
|
exports.getCert=function (options, cb) {
|
|
|
|
exports.registerNewAccount(options, function () {
|
|
|
|
exports.getCertificate(options, cb);
|
|
|
|
});
|
2015-12-13 16:50:04 +00:00
|
|
|
};
|