v1.0.1: reduce output just a titch
This commit is contained in:
parent
cbe20c4d00
commit
a89791ddba
14
index.js
14
index.js
@ -28,7 +28,7 @@ module.exports.create = function (opts) {
|
||||
|
||||
// Whenever a new keypair is used to successfully create an account, we need to save its keypair
|
||||
store.accounts.setKeypair = function (opts) {
|
||||
console.log('accounts.setKeypair:', opts);
|
||||
console.log('accounts.setKeypair:', opts.account, opts.email, opts.keypair);
|
||||
|
||||
var id = opts.account.id || opts.email || 'default';
|
||||
var keypair = opts.keypair;
|
||||
@ -45,7 +45,7 @@ module.exports.create = function (opts) {
|
||||
|
||||
// We need a way to retrieve a prior account's keypair for renewals and additional ACME certificate "orders"
|
||||
store.accounts.checkKeypair = function (opts) {
|
||||
console.log('accounts.checkKeypair:', opts);
|
||||
console.log('accounts.checkKeypair:', opts.account, opts.email);
|
||||
|
||||
var id = opts.account.id || opts.email || 'default';
|
||||
var keyblob = cache.keypairs[id];
|
||||
@ -75,7 +75,7 @@ module.exports.create = function (opts) {
|
||||
|
||||
// The certificate keypairs must not be the same as any account keypair
|
||||
store.certificates.setKeypair = function (opts) {
|
||||
console.log('certificates.setKeypair:', opts);
|
||||
console.log('certificates.setKeypair:', opts.certificate, opts.subject, opts.keypair);
|
||||
|
||||
var id = opts.certificate.kid || opts.certificate.id || opts.subject;
|
||||
var keypair = opts.keypair;
|
||||
@ -94,7 +94,7 @@ module.exports.create = function (opts) {
|
||||
|
||||
// You won't be able to use a certificate without it's private key, gotta save it
|
||||
store.certificates.checkKeypair = function (opts) {
|
||||
console.log('certificates.checkKeypair:', opts);
|
||||
console.log('certificates.checkKeypair:', opts.certificate, opts.subject);
|
||||
|
||||
var id = opts.certificate.kid || opts.certificate.id || opts.subject;
|
||||
var keyblob = cache.keypairs[id];
|
||||
@ -110,7 +110,7 @@ module.exports.create = function (opts) {
|
||||
// (perhaps to delete expired keys), but the same information can also be redireved from
|
||||
// the key using the "cert-info" package.
|
||||
store.certificates.set = function (opts) {
|
||||
console.log('certificates.set:', opts);
|
||||
console.log('certificates.set:', opts.certificate, opts.subject);
|
||||
|
||||
var id = opts.certificate.id || opts.subject;
|
||||
var pems = opts.pems;
|
||||
@ -132,7 +132,7 @@ module.exports.create = function (opts) {
|
||||
// but it's easiest to implement last since it's not useful until there
|
||||
// are certs that can actually be loaded from storage.
|
||||
store.certificates.check = function (opts) {
|
||||
console.log('certificates.check:', opts);
|
||||
console.log('certificates.check:', opts.certificate, opts.subject);
|
||||
|
||||
var id = opts.certificate.id || opts.subject;
|
||||
var certblob = cache.certificates[id];
|
||||
@ -141,4 +141,6 @@ module.exports.create = function (opts) {
|
||||
|
||||
return JSON.parse(certblob);
|
||||
};
|
||||
|
||||
return store;
|
||||
};
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "le-store-memory",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"lockfileVersion": 1
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "le-store-memory",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "An in-memory reference implementation for account, certificate, and keypair storage strategies in Greenlock",
|
||||
"homepage": "https://git.coolaj86.com/coolaj86/le-store-memory.js",
|
||||
"main": "index.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user