Compare commits
	
		
			No commits in common. "master" and "v2.1.3" have entirely different histories.
		
	
	
		
	
		
							
								
								
									
										35
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								README.md
									
									
									
									
									
								
							@ -1,36 +1,5 @@
 | 
				
			|||||||
# Deprecated
 | 
					le-store-certbot
 | 
				
			||||||
 | 
					================
 | 
				
			||||||
`le-store-certbot` has been replaced with [`le-store-fs`](https://git.coolaj86.com/coolaj86/le-store-fs.js).
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
The new storage strategy **keeps file system compatibility**, but **drops support** for Python config files.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless you're running `certbot` and Greenlock side-by-side, or interchangeably, you switch to `le-store-fs`.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Migrating to `le-store-fs`
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
It's **painless** and all of your existing certificates will be **preserved**
 | 
					 | 
				
			||||||
(assuming you use the same `configDir` as before).
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
```js
 | 
					 | 
				
			||||||
Greenlock.create({
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Leave configDir as it, if you've been setting it yourself.
 | 
					 | 
				
			||||||
  // Otherwise you should explicitly set it to the previous default:
 | 
					 | 
				
			||||||
  configDir: '~/letsencrypt/etc'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // le-store-fs takes the same options as le-store-certbot,
 | 
					 | 
				
			||||||
  // but ignores some of the ones that aren't important.
 | 
					 | 
				
			||||||
, store: require('le-store-fs').create({})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ...
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Alternatives
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  * Search npm for ["le-store-"](https://www.npmjs.com/search?q=le-store-) to find many alternatives.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# le-store-certbot
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
The "certbot" storage strategy for
 | 
					The "certbot" storage strategy for
 | 
				
			||||||
[Greenlock.js](https://git.coolaj86.com/coolaj86/le-store-certbot.js).
 | 
					[Greenlock.js](https://git.coolaj86.com/coolaj86/le-store-certbot.js).
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										97
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										97
									
								
								index.js
									
									
									
									
									
								
							@ -1,32 +1,12 @@
 | 
				
			|||||||
'use strict';
 | 
					'use strict';
 | 
				
			||||||
/* global Promise */
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
var PromiseA;
 | 
					var PromiseA = require('bluebird');
 | 
				
			||||||
try {
 | 
					var mkdirpAsync = PromiseA.promisify(require('mkdirp'));
 | 
				
			||||||
  PromiseA = require('bluebird');
 | 
					 | 
				
			||||||
} catch(e) {
 | 
					 | 
				
			||||||
  PromiseA = Promise;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
var util = require('util');
 | 
					 | 
				
			||||||
if (!util.promisify) {
 | 
					 | 
				
			||||||
  util.promisify = PromiseA.promisify;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
function promisifyAll(obj) {
 | 
					 | 
				
			||||||
  var aobj = {};
 | 
					 | 
				
			||||||
  Object.keys(obj).forEach(function (key) {
 | 
					 | 
				
			||||||
    aobj[key + 'Async'] = util.promisify(obj[key]);
 | 
					 | 
				
			||||||
  });
 | 
					 | 
				
			||||||
  return aobj;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
var mkdirpAsync = util.promisify(require('@root/mkdirp'));
 | 
					 | 
				
			||||||
var path = require('path');
 | 
					var path = require('path');
 | 
				
			||||||
var fs = require('fs');
 | 
					var fs = PromiseA.promisifyAll(require('fs'));
 | 
				
			||||||
var readFileAsync = util.promisify(fs.readFile);
 | 
					 | 
				
			||||||
var readdirAsync = util.promisify(fs.readdir);
 | 
					 | 
				
			||||||
var writeFileAsync = util.promisify(fs.writeFile);
 | 
					 | 
				
			||||||
var statAsync = util.promisify(fs.stat);
 | 
					 | 
				
			||||||
var sfs = require('safe-replace');
 | 
					var sfs = require('safe-replace');
 | 
				
			||||||
var os = require('os');
 | 
					var os = require('os');
 | 
				
			||||||
 | 
					var symlink = require('fs-symlink');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function log(debug) {
 | 
					function log(debug) {
 | 
				
			||||||
  if (debug) {
 | 
					  if (debug) {
 | 
				
			||||||
@ -41,7 +21,7 @@ function writeRenewalConfig(args) {
 | 
				
			|||||||
  var pyobj = args.pyobj;
 | 
					  var pyobj = args.pyobj;
 | 
				
			||||||
  pyobj.checkpoints = parseInt(pyobj.checkpoints, 10) || 0;
 | 
					  pyobj.checkpoints = parseInt(pyobj.checkpoints, 10) || 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  var pyconf = promisifyAll(require('pyconf'));
 | 
					  var pyconf = PromiseA.promisifyAll(require('pyconf'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  var liveDir = args.liveDir || path.join(args.configDir, 'live', args.domains[0]);
 | 
					  var liveDir = args.liveDir || path.join(args.configDir, 'live', args.domains[0]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -139,7 +119,6 @@ var defaults = {
 | 
				
			|||||||
, fullchainPath: [ ':configDir', 'live', ':hostname', 'fullchain.pem' ].join(path.sep)
 | 
					, fullchainPath: [ ':configDir', 'live', ':hostname', 'fullchain.pem' ].join(path.sep)
 | 
				
			||||||
, certPath: [ ':configDir', 'live', ':hostname', 'cert.pem' ].join(path.sep)
 | 
					, certPath: [ ':configDir', 'live', ':hostname', 'cert.pem' ].join(path.sep)
 | 
				
			||||||
, chainPath: [ ':configDir', 'live', ':hostname', 'chain.pem' ].join(path.sep)
 | 
					, chainPath: [ ':configDir', 'live', ':hostname', 'chain.pem' ].join(path.sep)
 | 
				
			||||||
, bundlePath: [ ':configDir', 'live', ':hostname', 'bundle.pem' ].join(path.sep)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
, rsaKeySize: 2048
 | 
					, rsaKeySize: 2048
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
@ -172,7 +151,7 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
        if (!keypath) {
 | 
					        if (!keypath) {
 | 
				
			||||||
          return null;
 | 
					          return null;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return readFileAsync(keypath, 'ascii').then(function (key) {
 | 
					        return fs.readFileAsync(keypath, 'ascii').then(function (key) {
 | 
				
			||||||
          if ('jwk' === format) {
 | 
					          if ('jwk' === format) {
 | 
				
			||||||
            return { privateKeyJwk: JSON.parse(key) };
 | 
					            return { privateKeyJwk: JSON.parse(key) };
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
@ -198,7 +177,7 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
            key = keypair.privateKeyPem;
 | 
					            key = keypair.privateKeyPem;
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          return writeFileAsync(keypath, key, 'ascii').then(function () {
 | 
					          return fs.writeFileAsync(keypath, key, 'ascii').then(function () {
 | 
				
			||||||
            return keypair;
 | 
					            return keypair;
 | 
				
			||||||
          });
 | 
					          });
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
@ -227,15 +206,15 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
          return PromiseA.reject(new Error("missing one or more of privkeyPath, fullchainPath, certPath, chainPath from options"));
 | 
					          return PromiseA.reject(new Error("missing one or more of privkeyPath, fullchainPath, certPath, chainPath from options"));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //, readFileAsync(fullchainPath, 'ascii')
 | 
					        //, fs.readFileAsync(fullchainPath, 'ascii')
 | 
				
			||||||
        // note: if this ^^ gets added back in, the arrays below must change
 | 
					        // note: if this ^^ gets added back in, the arrays below must change
 | 
				
			||||||
        return PromiseA.all([
 | 
					        return PromiseA.all([
 | 
				
			||||||
          readFileAsync(args.privkeyPath, 'ascii')   // 0
 | 
					          fs.readFileAsync(args.privkeyPath, 'ascii')   // 0
 | 
				
			||||||
        , readFileAsync(args.certPath, 'ascii')      // 1
 | 
					        , fs.readFileAsync(args.certPath, 'ascii')      // 1
 | 
				
			||||||
        , readFileAsync(args.chainPath, 'ascii')     // 2
 | 
					        , fs.readFileAsync(args.chainPath, 'ascii')     // 2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          // stat the file, not the link
 | 
					          // stat the file, not the link
 | 
				
			||||||
        , statAsync(args.certPath)                   // 3
 | 
					        , fs.statAsync(args.certPath)                   // 3
 | 
				
			||||||
        ]).then(function (arr) {
 | 
					        ]).then(function (arr) {
 | 
				
			||||||
          return {
 | 
					          return {
 | 
				
			||||||
            privkey: arr[0]                       // privkey.pem
 | 
					            privkey: arr[0]                       // privkey.pem
 | 
				
			||||||
@ -249,8 +228,8 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
          };
 | 
					          };
 | 
				
			||||||
        }, function (err) {
 | 
					        }, function (err) {
 | 
				
			||||||
          if (args.debug) {
 | 
					          if (args.debug) {
 | 
				
			||||||
            log("certificates.check");
 | 
					            console.error("[le-store-certbot] certificates.check");
 | 
				
			||||||
            log(err.stack);
 | 
					            console.error(err.stack);
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
          return null;
 | 
					          return null;
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
@ -267,8 +246,9 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
          var certPath = args.certPath || pyobj.cert || path.join(liveDir, 'cert.pem');
 | 
					          var certPath = args.certPath || pyobj.cert || path.join(liveDir, 'cert.pem');
 | 
				
			||||||
          var fullchainPath = args.fullchainPath || pyobj.fullchain || path.join(liveDir, 'fullchain.pem');
 | 
					          var fullchainPath = args.fullchainPath || pyobj.fullchain || path.join(liveDir, 'fullchain.pem');
 | 
				
			||||||
          var chainPath = args.chainPath || pyobj.chain || path.join(liveDir, 'chain.pem');
 | 
					          var chainPath = args.chainPath || pyobj.chain || path.join(liveDir, 'chain.pem');
 | 
				
			||||||
          var privkeyPath = args.privkeyPath || pyobj.privkey || args.domainKeyPath || path.join(liveDir, 'privkey.pem');
 | 
					          var privkeyPath = args.privkeyPath || pyobj.privkey
 | 
				
			||||||
          var bundlePath = args.bundlePath || pyobj.bundle || path.join(liveDir, 'bundle.pem');
 | 
					            || args.domainKeyPath
 | 
				
			||||||
 | 
					            || path.join(liveDir, 'privkey.pem');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          var archiveDir = args.archiveDir || path.join(args.configDir, 'archive', args.domains[0]);
 | 
					          var archiveDir = args.archiveDir || path.join(args.configDir, 'archive', args.domains[0]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -277,31 +257,22 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
          var fullchainArchive = path.join(archiveDir, 'fullchain' + checkpoints + '.pem');
 | 
					          var fullchainArchive = path.join(archiveDir, 'fullchain' + checkpoints + '.pem');
 | 
				
			||||||
          var chainArchive = path.join(archiveDir, 'chain'+ checkpoints + '.pem');
 | 
					          var chainArchive = path.join(archiveDir, 'chain'+ checkpoints + '.pem');
 | 
				
			||||||
          var privkeyArchive = path.join(archiveDir, 'privkey' + checkpoints + '.pem');
 | 
					          var privkeyArchive = path.join(archiveDir, 'privkey' + checkpoints + '.pem');
 | 
				
			||||||
          var bundleArchive = path.join(archiveDir, 'bundle' + checkpoints + '.pem');
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
          return mkdirpAsync(archiveDir).then(function () {
 | 
					          return mkdirpAsync(archiveDir).then(function () {
 | 
				
			||||||
            var ps = [
 | 
					            return PromiseA.all([
 | 
				
			||||||
              sfs.writeFileAsync(certArchive, pems.cert, 'ascii')
 | 
					              sfs.writeFileAsync(certArchive, pems.cert, 'ascii')
 | 
				
			||||||
            , sfs.writeFileAsync(chainArchive, pems.chain, 'ascii')
 | 
					            , sfs.writeFileAsync(chainArchive, pems.chain, 'ascii')
 | 
				
			||||||
            , sfs.writeFileAsync(fullchainArchive, [ pems.cert, pems.chain ].join('\n'), 'ascii')
 | 
					            , sfs.writeFileAsync(fullchainArchive, pems.cert + pems.chain, 'ascii')
 | 
				
			||||||
            , sfs.writeFileAsync(privkeyArchive, pems.privkey, 'ascii')
 | 
					            , sfs.writeFileAsync(privkeyArchive, pems.privkey, 'ascii')
 | 
				
			||||||
            ];
 | 
					            ]);
 | 
				
			||||||
            if (pems.bundle) {
 | 
					 | 
				
			||||||
              var bundleP = sfs.writeFileAsync(bundleArchive, pems.bundle, 'ascii');
 | 
					 | 
				
			||||||
              ps.push(bundleP);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            return PromiseA.all(ps);
 | 
					 | 
				
			||||||
          }).then(function () {
 | 
					          }).then(function () {
 | 
				
			||||||
            return mkdirpAsync(liveDir);
 | 
					            return mkdirpAsync(liveDir);
 | 
				
			||||||
          }).then(function () {
 | 
					          }).then(function () {
 | 
				
			||||||
            return PromiseA.all([
 | 
					            return PromiseA.all([
 | 
				
			||||||
              sfs.writeFileAsync(certPath, pems.cert, 'ascii')
 | 
					              symlink(certArchive, certPath)
 | 
				
			||||||
            , sfs.writeFileAsync(chainPath, pems.chain, 'ascii')
 | 
					            , symlink(chainArchive, chainPath)
 | 
				
			||||||
              // Most platforms need these two
 | 
					            , symlink(fullchainArchive, fullchainPath)
 | 
				
			||||||
            , sfs.writeFileAsync(fullchainPath, [ pems.cert, pems.chain ].join('\n'), 'ascii')
 | 
					            , symlink(privkeyArchive, privkeyPath)
 | 
				
			||||||
            , sfs.writeFileAsync(privkeyPath, pems.privkey, 'ascii')
 | 
					 | 
				
			||||||
              // HAProxy needs "bundle.pem" aka "combined.pem"
 | 
					 | 
				
			||||||
            , sfs.writeFileAsync(bundlePath, [ pems.privkey, pems.cert, pems.chain ].join('\n'), 'ascii')
 | 
					 | 
				
			||||||
            ]);
 | 
					            ]);
 | 
				
			||||||
          }).then(function () {
 | 
					          }).then(function () {
 | 
				
			||||||
            pyobj.checkpoints += 1;
 | 
					            pyobj.checkpoints += 1;
 | 
				
			||||||
@ -315,8 +286,6 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
              privkey: pems.privkey
 | 
					              privkey: pems.privkey
 | 
				
			||||||
            , cert: pems.cert
 | 
					            , cert: pems.cert
 | 
				
			||||||
            , chain: pems.chain
 | 
					            , chain: pems.chain
 | 
				
			||||||
            , expires: pems.expires
 | 
					 | 
				
			||||||
            , identifiers: pems.identifiers
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
              /*
 | 
					              /*
 | 
				
			||||||
              // TODO populate these only if they are actually known
 | 
					              // TODO populate these only if they are actually known
 | 
				
			||||||
@ -361,11 +330,11 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
          log(args.debug, "No email given");
 | 
					          log(args.debug, "No email given");
 | 
				
			||||||
          return PromiseA.resolve(null);
 | 
					          return PromiseA.resolve(null);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return readdirAsync(args.accountsDir).then(function (nodes) {
 | 
					        return fs.readdirAsync(args.accountsDir).then(function (nodes) {
 | 
				
			||||||
          log(args.debug, "success reading arg.accountsDir");
 | 
					          log(args.debug, "success reading arg.accountsDir");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          return PromiseA.all(nodes.map(function (node) {
 | 
					          return PromiseA.all(nodes.map(function (node) {
 | 
				
			||||||
            return readFileAsync(path.join(args.accountsDir, node, 'regr.json'), 'utf8').then(function (text) {
 | 
					            return fs.readFileAsync(path.join(args.accountsDir, node, 'regr.json'), 'utf8').then(function (text) {
 | 
				
			||||||
              var regr = JSON.parse(text);
 | 
					              var regr = JSON.parse(text);
 | 
				
			||||||
              regr.__accountId = node;
 | 
					              regr.__accountId = node;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -463,7 +432,7 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
          return PromiseA.all(configs.map(function (filename) {
 | 
					          return PromiseA.all(configs.map(function (filename) {
 | 
				
			||||||
            var keyname = filename.slice(0, -5);
 | 
					            var keyname = filename.slice(0, -5);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return readFileAsync(path.join(accountDir, filename), 'utf8').then(function (text) {
 | 
					            return fs.readFileAsync(path.join(accountDir, filename), 'utf8').then(function (text) {
 | 
				
			||||||
              var data;
 | 
					              var data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              try {
 | 
					              try {
 | 
				
			||||||
@ -531,9 +500,9 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
          // TODO abstract file writing
 | 
					          // TODO abstract file writing
 | 
				
			||||||
          return PromiseA.all([
 | 
					          return PromiseA.all([
 | 
				
			||||||
            // meta.json {"creation_host": "ns1.redirect-www.org", "creation_dt": "2015-12-11T04:14:38Z"}
 | 
					            // meta.json {"creation_host": "ns1.redirect-www.org", "creation_dt": "2015-12-11T04:14:38Z"}
 | 
				
			||||||
            writeFileAsync(path.join(accountDir, 'meta.json'), JSON.stringify(accountMeta), 'utf8')
 | 
					            fs.writeFileAsync(path.join(accountDir, 'meta.json'), JSON.stringify(accountMeta), 'utf8')
 | 
				
			||||||
            // private_key.json { "e", "d", "n", "q", "p", "kty", "qi", "dp", "dq" }
 | 
					            // private_key.json { "e", "d", "n", "q", "p", "kty", "qi", "dp", "dq" }
 | 
				
			||||||
          , writeFileAsync(path.join(accountDir, 'private_key.json'), JSON.stringify(reg.keypair.privateKeyJwk), 'utf8')
 | 
					          , fs.writeFileAsync(path.join(accountDir, 'private_key.json'), JSON.stringify(reg.keypair.privateKeyJwk), 'utf8')
 | 
				
			||||||
            // regr.json:
 | 
					            // regr.json:
 | 
				
			||||||
            /*
 | 
					            /*
 | 
				
			||||||
            { body: { contact: [ 'mailto:coolaj86@gmail.com' ],
 | 
					            { body: { contact: [ 'mailto:coolaj86@gmail.com' ],
 | 
				
			||||||
@ -543,7 +512,7 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
              new_authzr_uri: 'https://acme-v01.api.letsencrypt.org/acme/new-authz',
 | 
					              new_authzr_uri: 'https://acme-v01.api.letsencrypt.org/acme/new-authz',
 | 
				
			||||||
              terms_of_service: 'https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf' }
 | 
					              terms_of_service: 'https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf' }
 | 
				
			||||||
             */
 | 
					             */
 | 
				
			||||||
          , writeFileAsync(path.join(accountDir, 'regr.json'),
 | 
					          , fs.writeFileAsync(path.join(accountDir, 'regr.json'),
 | 
				
			||||||
                              JSON.stringify(regrBody),
 | 
					                              JSON.stringify(regrBody),
 | 
				
			||||||
                              'utf8')
 | 
					                              'utf8')
 | 
				
			||||||
          ]);
 | 
					          ]);
 | 
				
			||||||
@ -559,7 +528,7 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
      // Accounts
 | 
					      // Accounts
 | 
				
			||||||
    , getAccountIdAsync: function (args) {
 | 
					    , getAccountIdAsync: function (args) {
 | 
				
			||||||
        var pyconf = promisifyAll(require('pyconf'));
 | 
					        var pyconf = PromiseA.promisifyAll(require('pyconf'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return pyconf.readFileAsync(args.renewalPath).then(function (renewal) {
 | 
					        return pyconf.readFileAsync(args.renewalPath).then(function (renewal) {
 | 
				
			||||||
          var accountId = renewal.account;
 | 
					          var accountId = renewal.account;
 | 
				
			||||||
@ -595,7 +564,7 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
      // Configs
 | 
					      // Configs
 | 
				
			||||||
    , _checkHelperAsync: function (args) {
 | 
					    , _checkHelperAsync: function (args) {
 | 
				
			||||||
        var pyconf = promisifyAll(require('pyconf'));
 | 
					        var pyconf = PromiseA.promisifyAll(require('pyconf'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return pyconf.readFileAsync(args.renewalPath).then(function (pyobj) {
 | 
					        return pyconf.readFileAsync(args.renewalPath).then(function (pyobj) {
 | 
				
			||||||
          return pyobj;
 | 
					          return pyobj;
 | 
				
			||||||
@ -649,7 +618,7 @@ module.exports.create = function (configs) {
 | 
				
			|||||||
    , allAsync: function (copy) {
 | 
					    , allAsync: function (copy) {
 | 
				
			||||||
        copy.domains = [];
 | 
					        copy.domains = [];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return readdirAsync(copy.renewalDir).then(function (nodes) {
 | 
					        return fs.readdirAsync(copy.renewalDir).then(function (nodes) {
 | 
				
			||||||
          nodes = nodes.filter(function (node) {
 | 
					          nodes = nodes.filter(function (node) {
 | 
				
			||||||
            return /^[a-z0-9]+.*\.conf$/.test(node);
 | 
					            return /^[a-z0-9]+.*\.conf$/.test(node);
 | 
				
			||||||
          });
 | 
					          });
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										26
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										26
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -1,26 +0,0 @@
 | 
				
			|||||||
{
 | 
					 | 
				
			||||||
  "name": "le-store-certbot",
 | 
					 | 
				
			||||||
  "version": "2.2.4",
 | 
					 | 
				
			||||||
  "lockfileVersion": 1,
 | 
					 | 
				
			||||||
  "requires": true,
 | 
					 | 
				
			||||||
  "dependencies": {
 | 
					 | 
				
			||||||
    "@root/mkdirp": {
 | 
					 | 
				
			||||||
      "version": "1.0.0",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@root/mkdirp/-/mkdirp-1.0.0.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-hxGAYUx5029VggfG+U9naAhQkoMSXtOeXtbql97m3Hi6/sQSRL/4khKZPyOF6w11glyCOU38WCNLu9nUcSjOfA=="
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "pyconf": {
 | 
					 | 
				
			||||||
      "version": "1.1.7",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/pyconf/-/pyconf-1.1.7.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-v4clh33m68sjtMsh8XMpjhGWb/MQODAYZ1y7ORG5Qv58UK25OddoB+oXyexgDkK8ttFui/lZm2sQDgA2Ftjfkw==",
 | 
					 | 
				
			||||||
      "requires": {
 | 
					 | 
				
			||||||
        "safe-replace": "^1.0.2"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "safe-replace": {
 | 
					 | 
				
			||||||
      "version": "1.1.0",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/safe-replace/-/safe-replace-1.1.0.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-9/V2E0CDsKs9DWOOwJH7jYpSl9S3N05uyevNjvsnDauBqRowBPOyot1fIvV5N2IuZAbYyvrTXrYFVG0RZInfFw=="
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
							
								
								
									
										14
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								package.json
									
									
									
									
									
								
							@ -1,10 +1,9 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "le-store-certbot",
 | 
					  "name": "le-store-certbot",
 | 
				
			||||||
  "version": "2.2.4",
 | 
					  "version": "2.1.3",
 | 
				
			||||||
  "description": "The \"certbot\" storage strategy for Greenlock.js",
 | 
					  "description": "The \"certbot\" storage strategy for Greenlock.js",
 | 
				
			||||||
  "main": "index.js",
 | 
					  "main": "index.js",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "bump": "npm version -m \"chore(release): bump to v%s\"",
 | 
					 | 
				
			||||||
    "test": "echo \"Error: no test specified\" && exit 1"
 | 
					    "test": "echo \"Error: no test specified\" && exit 1"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "repository": {
 | 
					  "repository": {
 | 
				
			||||||
@ -24,12 +23,11 @@
 | 
				
			|||||||
    "url": "https://git.coolaj86.com/coolaj86/le-store-certbot.js/issues"
 | 
					    "url": "https://git.coolaj86.com/coolaj86/le-store-certbot.js/issues"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "homepage": "https://git.coolaj86.com/coolaj86/le-store-certbot.js",
 | 
					  "homepage": "https://git.coolaj86.com/coolaj86/le-store-certbot.js",
 | 
				
			||||||
  "trulyOptionalDependencies": {
 | 
					 | 
				
			||||||
    "bluebird": "^3.5.1"
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@root/mkdirp": "^1.0.0",
 | 
					    "bluebird": "^3.5.1",
 | 
				
			||||||
    "pyconf": "^1.1.7",
 | 
					    "fs-symlink": "^1.2.1",
 | 
				
			||||||
    "safe-replace": "^1.1.0"
 | 
					    "mkdirp": "^0.5.1",
 | 
				
			||||||
 | 
					    "pyconf": "^1.1.2",
 | 
				
			||||||
 | 
					    "safe-replace": "^1.0.2"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user