Merge branch 'master' of ssh://git.coolaj86.com:22042/coolaj86/le-store-SPEC.js
This commit is contained in:
commit
f4c1aa6906
|
@ -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
|
||||
|
|
9
index.js
9
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;
|
||||
|
|
Loading…
Reference in New Issue