From 37a7fd55b7d6dd10faa1f07a15d44c6ef4f2662e Mon Sep 17 00:00:00 2001 From: CaptEmulation Date: Sun, 17 Feb 2019 11:44:58 -0600 Subject: [PATCH] update template --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index c045fdc..c63e0eb 100644 --- a/index.js +++ b/index.js @@ -94,18 +94,18 @@ module.exports.create = function (options) { cb(null, { privkey: 'PEM', cert: 'PEM', chain: 'PEM', domains: [], accountId: '...' }); } // Certificates - , set: function (opts, pems, cb) { + , set: function (opts, cb) { // opts.domains // each of these must be indexed // opts.email // optional, should be indexed // opts.accountId // optional - same as set by you in accounts.set(opts, keypair) above - // pems.privkey - // pems.cert - // pems.chain + // opts.certs.privkey + // opts.certs.cert + // opts.certs.chain // SAVE to the database, index the email address, the accountId, and alias the domains - cb(null, pems); + cb(null, { privkey: 'PEM', cert: 'PEM', chain: 'PEM' }); } }; -- 2.38.5