diff --git a/README.md b/README.md index a6a79d9..82f8697 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,14 @@ # le-store-SPEC -| Sponsored by [ppl](https://ppl.family) | [greenlock.js](https://git.coolaj86.com/coolaj86/greenlock.js) | +| A [Root](https://rootprojects.org) Project | [greenlock.js](https://git.coolaj86.com/coolaj86/greenlock.js) | The reference implementation, specification, template, and tests for creating an le-store- strategy. The reference implementation is completely in-memory. -See [Help Wanted: Database Plugins (for saving certs)](https://github.com/Daplie/node-letsencrypt/issues/39) +See [Help Wanted: Database Plugins (for saving certs)](https://git.coolaj86.com/coolaj86/le-store-SPEC.js/issues/1) -How to create a custom strategy -=============================== +# How to create a custom strategy READ THIS README: Believe it or not, most of your answers are either right here diff --git a/index.js b/index.js index 267779c..3a3f8d0 100644 --- a/index.js +++ b/index.js @@ -257,18 +257,19 @@ module.exports.create = function (options) { // Certificates - , set: function (opts, certs, cb) { + , set: function (opts, cb) { // opts.domains // opts.email // optional // opts.accountId // optional - // certs.privkey - // certs.cert - // certs.chain + // opts.certs.privkey + // opts.certs.cert + // opts.certs.chain var index; var accountId; var account; + var certs = opts.certs; var subject = certs.subject || opts.domains[0]; var altnames = certs.altnames || opts.domains; var accountCerts;