From 9de9c90061f16f0afb0aca261bc196e7d62d2948 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 15 Dec 2015 14:35:58 +0000 Subject: [PATCH] add back getCert --- lib/client.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index a6ef034..682bea9 100644 --- a/lib/client.js +++ b/lib/client.js @@ -10,5 +10,8 @@ exports.Acme = require('acme-client'); exports.registerNewAccount = require('register-new-account'); exports.getCertificate = require('get-certificate'); -exports.getCert=function (options) { +exports.getCert=function (options, cb) { + exports.registerNewAccount(options, function () { + exports.getCertificate(options, cb); + }); };