Updates to SPEC template from doing my own implementation #5
10
index.js
10
index.js
|
@ -94,18 +94,18 @@ module.exports.create = function (options) {
|
||||||
cb(null, { privkey: 'PEM', cert: 'PEM', chain: 'PEM', domains: [], accountId: '...' });
|
cb(null, { privkey: 'PEM', cert: 'PEM', chain: 'PEM', domains: [], accountId: '...' });
|
||||||
}
|
}
|
||||||
// Certificates
|
// Certificates
|
||||||
, set: function (opts, pems, cb) {
|
, set: function (opts, cb) {
|
||||||
// opts.domains // each of these must be indexed
|
// opts.domains // each of these must be indexed
|
||||||
// opts.email // optional, should be indexed
|
// opts.email // optional, should be indexed
|
||||||
// opts.accountId // optional - same as set by you in accounts.set(opts, keypair) above
|
// opts.accountId // optional - same as set by you in accounts.set(opts, keypair) above
|
||||||
|
|
||||||
// pems.privkey
|
// opts.certs.privkey
|
||||||
// pems.cert
|
// opts.certs.cert
|
||||||
// pems.chain
|
// opts.certs.chain
|
||||||
|
|
||||||
|
|
||||||
// SAVE to the database, index the email address, the accountId, and alias the domains
|
// 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' });
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue