provide cert and key file in callback

This commit is contained in:
Girish Ramakrishnan
2015-12-14 08:56:17 -08:00
parent 21b94b2655
commit 0651bfc4b8
2 changed files with 12 additions and 7 deletions
+5 -1
View File
@@ -361,7 +361,11 @@ function acmeFlow(domain, email, accountKeyPem, outdir, callback) {
createKeyAndCsr.bind(null, domain, outdir),
signCertificate.bind(null, accountKeyPem),
downloadCertificate.bind(null, domain, outdir)
], callback);
], function (error) {
if (error) return callback(error);
callback(null, path.join(outdir, domain + '.cert'), path.join(outdir, domain + '.key'));
});
});
});
}