Compare commits
28 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
03fdbe157a | ||
|
0393b1ae3a | ||
|
16637c4f67 | ||
c834d1603d | |||
a19685734d | |||
bba58351e4 | |||
fa845c4e18 | |||
|
791cb03910 | ||
d7313d932a | |||
cf9890e387 | |||
dc1920e68a | |||
|
7b4089ecb9 | ||
89fa3d688c | |||
ddd9faf76a | |||
13ff4bd4dc | |||
0db09589fd | |||
1db1d10adc | |||
9cf2126ddd | |||
e418a56b68 | |||
|
cab8ae510f | ||
80a93b467a | |||
|
87853bc37b | ||
04f93070dc | |||
|
1db8aa20a6 | ||
|
7202706545 | ||
|
0a370238e5 | ||
|
48bcd7a103 | ||
|
0990fd24fc |
67
README.md
67
README.md
@ -1,7 +1,39 @@
|
||||
le-store-certbot
|
||||
================
|
||||
# Deprecated
|
||||
|
||||
The "certbot" storage strategy for node-letsencrypt.
|
||||
`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
|
||||
[Greenlock.js](https://git.coolaj86.com/coolaj86/le-store-certbot.js).
|
||||
|
||||
This le storage strategy aims to maintain compatibility with the
|
||||
configuration files and file structure of the official certbot client.
|
||||
@ -17,24 +49,27 @@ npm install --save le-store-certbot@2.x
|
||||
|
||||
```bash
|
||||
var leStore = require('le-store-certbot').create({
|
||||
configDir: require('homedir')() + '/letsencrypt/etc' // or /etc/letsencrypt or wherever
|
||||
configDir: require('homedir')() + '/acme/etc' // or /etc/acme or wherever
|
||||
, privkeyPath: ':configDir/live/:hostname/privkey.pem' //
|
||||
, fullchainPath: ':configDir/live/:hostname/fullchain.pem' // Note: both that :configDir and :hostname
|
||||
, certPath: ':configDir/live/:hostname/cert.pem' // will be templated as expected by
|
||||
, chainPath: ':configDir/live/:hostname/chain.pem' // node-letsencrypt
|
||||
, chainPath: ':configDir/live/:hostname/chain.pem' // greenlock.js
|
||||
|
||||
, workDir: require('homedir')() + '/letsencrypt/var/lib'
|
||||
, logsDir: require('homedir')() + '/letsencrypt/var/log'
|
||||
, logsDir: require('homedir')() + '/tmp/acme/log'
|
||||
|
||||
, webrootPath: '~/letsencrypt/srv/www/:hostname/.well-known/acme-challenge'
|
||||
, webrootPath: '~/acme/srv/www/:hostname/.well-known/acme-challenge'
|
||||
|
||||
, debug: false
|
||||
});
|
||||
```
|
||||
|
||||
var LE = require('letsencrypt');
|
||||
The store module can be used globally with Greenlock like this:
|
||||
|
||||
LE.create({
|
||||
server: LE.stagingServerUrl // Change to LE.productionServerUrl in production
|
||||
```
|
||||
var Greenlock = require('greenlock');
|
||||
|
||||
Greenlock.create({
|
||||
...
|
||||
, store: leStore
|
||||
});
|
||||
```
|
||||
@ -43,7 +78,7 @@ Example File Structure
|
||||
----------------------
|
||||
|
||||
```
|
||||
~/letsencrypt/
|
||||
~/acme/
|
||||
└── etc
|
||||
├── accounts
|
||||
│ └── acme-staging.api.letsencrypt.org
|
||||
@ -53,19 +88,19 @@ Example File Structure
|
||||
│ ├── private_key.json
|
||||
│ └── regr.json
|
||||
├── archive
|
||||
│ └── example.daplie.me
|
||||
│ └── example.com
|
||||
│ ├── cert0.pem
|
||||
│ ├── chain0.pem
|
||||
│ ├── fullchain0.pem
|
||||
│ └── privkey0.pem
|
||||
├── live
|
||||
│ └── example.daplie.me
|
||||
│ └── example.com
|
||||
│ ├── cert.pem
|
||||
│ ├── chain.pem
|
||||
│ ├── fullchain.pem
|
||||
│ ├── privkey.pem
|
||||
│ └── privkey.pem.bak
|
||||
└── renewal
|
||||
├── example.daplie.me.conf
|
||||
└── example.daplie.me.conf.bak
|
||||
├── example.com.conf
|
||||
└── example.com.conf.bak
|
||||
```
|
||||
|
114
index.js
114
index.js
@ -1,9 +1,30 @@
|
||||
'use strict';
|
||||
/* global Promise */
|
||||
|
||||
var PromiseA = require('bluebird');
|
||||
var mkdirpAsync = PromiseA.promisify(require('mkdirp'));
|
||||
var PromiseA;
|
||||
try {
|
||||
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 fs = PromiseA.promisifyAll(require('fs'));
|
||||
var fs = 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 os = require('os');
|
||||
|
||||
@ -20,7 +41,7 @@ function writeRenewalConfig(args) {
|
||||
var pyobj = args.pyobj;
|
||||
pyobj.checkpoints = parseInt(pyobj.checkpoints, 10) || 0;
|
||||
|
||||
var pyconf = PromiseA.promisifyAll(require('pyconf'));
|
||||
var pyconf = promisifyAll(require('pyconf'));
|
||||
|
||||
var liveDir = args.liveDir || path.join(args.configDir, 'live', args.domains[0]);
|
||||
|
||||
@ -100,10 +121,12 @@ function pyToJson(pyobj) {
|
||||
return jsobj;
|
||||
}
|
||||
|
||||
var crypto = require('crypto');
|
||||
var rnd = crypto.randomBytes(8).toString('hex');
|
||||
var defaults = {
|
||||
configDir: [ os.homedir(), 'letsencrypt', 'etc' ].join(path.sep) // /etc/letsencrypt/
|
||||
, logsDir: [ os.homedir(), 'letsencrypt', 'var', 'log' ].join(path.sep) // /var/log/letsencrypt/
|
||||
, workDir: [ os.homedir(), 'letsencrypt', 'var', 'lib' ].join(path.sep) // /var/lib/letsencrypt/
|
||||
configDir: [ os.homedir(), 'letsencrypt', 'etc' ].join(path.sep) // /etc/letsencrypt/
|
||||
, logsDir: [ os.tmpdir(), 'acme-' + rnd, 'log' ].join(path.sep) // /var/log/letsencrypt/
|
||||
, webrootPath: [ os.tmpdir(), 'acme-' + rnd, 'acme-challenge' ].join(path.sep)
|
||||
|
||||
, accountsDir: [ ':configDir', 'accounts', ':serverDir' ].join(path.sep)
|
||||
, renewalPath: [ ':configDir', 'renewal', ':hostname.conf' ].join(path.sep)
|
||||
@ -116,9 +139,9 @@ var defaults = {
|
||||
, fullchainPath: [ ':configDir', 'live', ':hostname', 'fullchain.pem' ].join(path.sep)
|
||||
, certPath: [ ':configDir', 'live', ':hostname', 'cert.pem' ].join(path.sep)
|
||||
, chainPath: [ ':configDir', 'live', ':hostname', 'chain.pem' ].join(path.sep)
|
||||
, bundlePath: [ ':configDir', 'live', ':hostname', 'bundle.pem' ].join(path.sep)
|
||||
|
||||
, rsaKeySize: 2048
|
||||
, webrootPath: [ ':workDir', 'acme-challenge' ].join(path.sep)
|
||||
};
|
||||
|
||||
module.exports.create = function (configs) {
|
||||
@ -149,7 +172,7 @@ module.exports.create = function (configs) {
|
||||
if (!keypath) {
|
||||
return null;
|
||||
}
|
||||
return fs.readFileAsync(keypath, 'ascii').then(function (key) {
|
||||
return readFileAsync(keypath, 'ascii').then(function (key) {
|
||||
if ('jwk' === format) {
|
||||
return { privateKeyJwk: JSON.parse(key) };
|
||||
}
|
||||
@ -175,7 +198,7 @@ module.exports.create = function (configs) {
|
||||
key = keypair.privateKeyPem;
|
||||
}
|
||||
|
||||
return fs.writeFileAsync(keypath, key, 'ascii').then(function () {
|
||||
return writeFileAsync(keypath, key, 'ascii').then(function () {
|
||||
return keypair;
|
||||
});
|
||||
});
|
||||
@ -204,15 +227,15 @@ module.exports.create = function (configs) {
|
||||
return PromiseA.reject(new Error("missing one or more of privkeyPath, fullchainPath, certPath, chainPath from options"));
|
||||
}
|
||||
|
||||
//, fs.readFileAsync(fullchainPath, 'ascii')
|
||||
//, readFileAsync(fullchainPath, 'ascii')
|
||||
// note: if this ^^ gets added back in, the arrays below must change
|
||||
return PromiseA.all([
|
||||
fs.readFileAsync(args.privkeyPath, 'ascii') // 0
|
||||
, fs.readFileAsync(args.certPath, 'ascii') // 1
|
||||
, fs.readFileAsync(args.chainPath, 'ascii') // 2
|
||||
readFileAsync(args.privkeyPath, 'ascii') // 0
|
||||
, readFileAsync(args.certPath, 'ascii') // 1
|
||||
, readFileAsync(args.chainPath, 'ascii') // 2
|
||||
|
||||
// stat the file, not the link
|
||||
, fs.statAsync(args.certPath) // 3
|
||||
, statAsync(args.certPath) // 3
|
||||
]).then(function (arr) {
|
||||
return {
|
||||
privkey: arr[0] // privkey.pem
|
||||
@ -226,8 +249,8 @@ module.exports.create = function (configs) {
|
||||
};
|
||||
}, function (err) {
|
||||
if (args.debug) {
|
||||
console.error("[le-store-certbot] certificates.check");
|
||||
console.error(err.stack);
|
||||
log("certificates.check");
|
||||
log(err.stack);
|
||||
}
|
||||
return null;
|
||||
});
|
||||
@ -244,9 +267,8 @@ module.exports.create = function (configs) {
|
||||
var certPath = args.certPath || pyobj.cert || path.join(liveDir, 'cert.pem');
|
||||
var fullchainPath = args.fullchainPath || pyobj.fullchain || path.join(liveDir, 'fullchain.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 || args.domainKeyPath || path.join(liveDir, 'privkey.pem');
|
||||
var bundlePath = args.bundlePath || pyobj.bundle || path.join(liveDir, 'bundle.pem');
|
||||
|
||||
var archiveDir = args.archiveDir || path.join(args.configDir, 'archive', args.domains[0]);
|
||||
|
||||
@ -255,22 +277,31 @@ module.exports.create = function (configs) {
|
||||
var fullchainArchive = path.join(archiveDir, 'fullchain' + checkpoints + '.pem');
|
||||
var chainArchive = path.join(archiveDir, 'chain'+ checkpoints + '.pem');
|
||||
var privkeyArchive = path.join(archiveDir, 'privkey' + checkpoints + '.pem');
|
||||
var bundleArchive = path.join(archiveDir, 'bundle' + checkpoints + '.pem');
|
||||
|
||||
return mkdirpAsync(archiveDir).then(function () {
|
||||
return PromiseA.all([
|
||||
var ps = [
|
||||
sfs.writeFileAsync(certArchive, pems.cert, 'ascii')
|
||||
, sfs.writeFileAsync(chainArchive, pems.chain, 'ascii')
|
||||
, sfs.writeFileAsync(fullchainArchive, pems.cert + pems.chain, 'ascii')
|
||||
, sfs.writeFileAsync(fullchainArchive, [ pems.cert, pems.chain ].join('\n'), '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 () {
|
||||
return mkdirpAsync(liveDir);
|
||||
}).then(function () {
|
||||
return PromiseA.all([
|
||||
sfs.writeFileAsync(certPath, pems.cert, 'ascii')
|
||||
, sfs.writeFileAsync(chainPath, pems.chain, 'ascii')
|
||||
, sfs.writeFileAsync(fullchainPath, pems.cert + pems.chain, 'ascii')
|
||||
// Most platforms need these two
|
||||
, sfs.writeFileAsync(fullchainPath, [ pems.cert, pems.chain ].join('\n'), 'ascii')
|
||||
, 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 () {
|
||||
pyobj.checkpoints += 1;
|
||||
@ -284,6 +315,8 @@ module.exports.create = function (configs) {
|
||||
privkey: pems.privkey
|
||||
, cert: pems.cert
|
||||
, chain: pems.chain
|
||||
, expires: pems.expires
|
||||
, identifiers: pems.identifiers
|
||||
|
||||
/*
|
||||
// TODO populate these only if they are actually known
|
||||
@ -328,11 +361,11 @@ module.exports.create = function (configs) {
|
||||
log(args.debug, "No email given");
|
||||
return PromiseA.resolve(null);
|
||||
}
|
||||
return fs.readdirAsync(args.accountsDir).then(function (nodes) {
|
||||
return readdirAsync(args.accountsDir).then(function (nodes) {
|
||||
log(args.debug, "success reading arg.accountsDir");
|
||||
|
||||
return PromiseA.all(nodes.map(function (node) {
|
||||
return fs.readFileAsync(path.join(args.accountsDir, node, 'regr.json'), 'utf8').then(function (text) {
|
||||
return readFileAsync(path.join(args.accountsDir, node, 'regr.json'), 'utf8').then(function (text) {
|
||||
var regr = JSON.parse(text);
|
||||
regr.__accountId = node;
|
||||
|
||||
@ -373,7 +406,8 @@ module.exports.create = function (configs) {
|
||||
// Accounts
|
||||
, _getAccountIdByPublicKey: function (keypair) {
|
||||
// we use insecure md5 - even though we know it's bad - because that's how the python client did
|
||||
return require('crypto').createHash('md5').update(keypair.publicKeyPem).digest('hex');
|
||||
var pubkey = keypair.publicKeyPem.replace(/\r/g, '');
|
||||
return crypto.createHash('md5').update(pubkey).digest('hex');
|
||||
}
|
||||
// Accounts
|
||||
, checkKeypairAsync: function (args) {
|
||||
@ -429,7 +463,7 @@ module.exports.create = function (configs) {
|
||||
return PromiseA.all(configs.map(function (filename) {
|
||||
var keyname = filename.slice(0, -5);
|
||||
|
||||
return fs.readFileAsync(path.join(accountDir, filename), 'utf8').then(function (text) {
|
||||
return readFileAsync(path.join(accountDir, filename), 'utf8').then(function (text) {
|
||||
var data;
|
||||
|
||||
try {
|
||||
@ -481,15 +515,25 @@ module.exports.create = function (configs) {
|
||||
creation_host: os.hostname()
|
||||
, creation_dt: new Date().toISOString()
|
||||
};
|
||||
var uri = args.server.replace(/\/directory.*/,
|
||||
'/acme/reg/' + accountId);
|
||||
|
||||
return mkdirpAsync(accountDir).then(function () {
|
||||
var regrBody = {
|
||||
body: reg.receipt,
|
||||
uri: uri,
|
||||
};
|
||||
|
||||
if (typeof reg.newAuthzUrl !== 'undefined') {
|
||||
regrBody.new_authzr_uri = reg.newAuthzUrl;
|
||||
}
|
||||
|
||||
// TODO abstract file writing
|
||||
return PromiseA.all([
|
||||
// meta.json {"creation_host": "ns1.redirect-www.org", "creation_dt": "2015-12-11T04:14:38Z"}
|
||||
fs.writeFileAsync(path.join(accountDir, 'meta.json'), JSON.stringify(accountMeta), 'utf8')
|
||||
writeFileAsync(path.join(accountDir, 'meta.json'), JSON.stringify(accountMeta), 'utf8')
|
||||
// private_key.json { "e", "d", "n", "q", "p", "kty", "qi", "dp", "dq" }
|
||||
, fs.writeFileAsync(path.join(accountDir, 'private_key.json'), JSON.stringify(reg.keypair.privateKeyJwk), 'utf8')
|
||||
, writeFileAsync(path.join(accountDir, 'private_key.json'), JSON.stringify(reg.keypair.privateKeyJwk), 'utf8')
|
||||
// regr.json:
|
||||
/*
|
||||
{ body: { contact: [ 'mailto:coolaj86@gmail.com' ],
|
||||
@ -499,7 +543,9 @@ module.exports.create = function (configs) {
|
||||
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' }
|
||||
*/
|
||||
, fs.writeFileAsync(path.join(accountDir, 'regr.json'), JSON.stringify({ body: reg.receipt }), 'utf8')
|
||||
, writeFileAsync(path.join(accountDir, 'regr.json'),
|
||||
JSON.stringify(regrBody),
|
||||
'utf8')
|
||||
]);
|
||||
}).then(function () {
|
||||
return {
|
||||
@ -513,7 +559,7 @@ module.exports.create = function (configs) {
|
||||
}
|
||||
// Accounts
|
||||
, getAccountIdAsync: function (args) {
|
||||
var pyconf = PromiseA.promisifyAll(require('pyconf'));
|
||||
var pyconf = promisifyAll(require('pyconf'));
|
||||
|
||||
return pyconf.readFileAsync(args.renewalPath).then(function (renewal) {
|
||||
var accountId = renewal.account;
|
||||
@ -549,7 +595,7 @@ module.exports.create = function (configs) {
|
||||
}
|
||||
// Configs
|
||||
, _checkHelperAsync: function (args) {
|
||||
var pyconf = PromiseA.promisifyAll(require('pyconf'));
|
||||
var pyconf = promisifyAll(require('pyconf'));
|
||||
|
||||
return pyconf.readFileAsync(args.renewalPath).then(function (pyobj) {
|
||||
return pyobj;
|
||||
@ -603,7 +649,7 @@ module.exports.create = function (configs) {
|
||||
, allAsync: function (copy) {
|
||||
copy.domains = [];
|
||||
|
||||
return fs.readdirAsync(copy.renewalDir).then(function (nodes) {
|
||||
return readdirAsync(copy.renewalDir).then(function (nodes) {
|
||||
nodes = nodes.filter(function (node) {
|
||||
return /^[a-z0-9]+.*\.conf$/.test(node);
|
||||
});
|
||||
|
26
package-lock.json
generated
Normal file
26
package-lock.json
generated
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"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=="
|
||||
}
|
||||
}
|
||||
}
|
21
package.json
21
package.json
@ -1,14 +1,15 @@
|
||||
{
|
||||
"name": "le-store-certbot",
|
||||
"version": "2.0.5",
|
||||
"description": "The \"certbot\" storage strategy for node-letsencrypt",
|
||||
"version": "2.2.4",
|
||||
"description": "The \"certbot\" storage strategy for Greenlock.js",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"bump": "npm version -m \"chore(release): bump to v%s\"",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Daplie/le-store-certbot.git"
|
||||
"url": "https://git.coolaj86.com/coolaj86/le-store-certbot.js"
|
||||
},
|
||||
"keywords": [
|
||||
"le-store",
|
||||
@ -20,13 +21,15 @@
|
||||
"author": "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)",
|
||||
"license": "(MIT OR Apache-2.0)",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Daplie/le-store-certbot/issues"
|
||||
"url": "https://git.coolaj86.com/coolaj86/le-store-certbot.js/issues"
|
||||
},
|
||||
"homepage": "https://git.coolaj86.com/coolaj86/le-store-certbot.js",
|
||||
"trulyOptionalDependencies": {
|
||||
"bluebird": "^3.5.1"
|
||||
},
|
||||
"homepage": "https://github.com/Daplie/le-store-certbot#readme",
|
||||
"dependencies": {
|
||||
"bluebird": "^3.4.1",
|
||||
"mkdirp": "^0.5.1",
|
||||
"pyconf": "^1.1.2",
|
||||
"safe-replace": "^1.0.2"
|
||||
"@root/mkdirp": "^1.0.0",
|
||||
"pyconf": "^1.1.7",
|
||||
"safe-replace": "^1.1.0"
|
||||
}
|
||||
}
|
||||
|
@ -6,63 +6,78 @@ fullchain = :fullchain_path
|
||||
|
||||
# Options and defaults used in the renewal process
|
||||
[renewalparams]
|
||||
no_self_upgrade = True
|
||||
apache_enmod = a2enmod
|
||||
no_verify_ssl = False
|
||||
ifaces = None
|
||||
apache_dismod = a2dismod
|
||||
register_unsafely_without_email = False
|
||||
apache_handle_modules = True
|
||||
uir = None
|
||||
installer = none
|
||||
installer = None
|
||||
nginx_ctl = nginx
|
||||
config_dir = :configDir
|
||||
text_mode = True
|
||||
# junk?
|
||||
# https://github.com/letsencrypt/letsencrypt/issues/1955
|
||||
func = <function obtain_cert at 0x30c9500>
|
||||
func = <function obtain_cert at 0x7f093a163c08>
|
||||
staging = False
|
||||
prepare = False
|
||||
work_dir = :work_dir
|
||||
tos = :agree_tos
|
||||
init = False
|
||||
http01_port = :http_01_port
|
||||
duplicate = False
|
||||
noninteractive_mode = True
|
||||
# this is for the domain
|
||||
key_path = :privkey_path
|
||||
nginx = False
|
||||
nginx_server_root = /etc/nginx
|
||||
fullchain_path = :fullchain_path
|
||||
email = :email
|
||||
csr = None
|
||||
agree_dev_preview = None
|
||||
redirect = None
|
||||
verb = certonly
|
||||
verbose_count = -3
|
||||
config_file = None
|
||||
renew_by_default = True
|
||||
hsts = False
|
||||
apache_handle_sites = True
|
||||
authenticator = webroot
|
||||
domains = :hostnames #comma,delimited,list
|
||||
rsa_key_size = :rsa_key_size
|
||||
apache_challenge_location = /etc/apache2
|
||||
# starts at 0 and increments at every renewal
|
||||
checkpoints = -1
|
||||
manual_test_mode = False
|
||||
apache = False
|
||||
cert_path = :cert_path
|
||||
webroot_path = :webroot_paths # comma,delimited,list
|
||||
reinstall = False
|
||||
expand = False
|
||||
strict_permissions = False
|
||||
apache_server_root = /etc/apache2
|
||||
# https://github.com/letsencrypt/letsencrypt/issues/1948
|
||||
account = :account_id
|
||||
dry_run = False
|
||||
manual_public_ip_logging_ok = False
|
||||
chain_path = :chain_path
|
||||
break_my_certs = False
|
||||
standalone = False
|
||||
manual = False
|
||||
server = :acme_discovery_url
|
||||
standalone_supported_challenges = "http-01,tls-sni-01"
|
||||
webroot = True
|
||||
os_packages_only = False
|
||||
apache_init_script = None
|
||||
user_agent = None
|
||||
apache_ctl = apache2ctl
|
||||
apache_le_vhost_ext = -le-ssl.conf
|
||||
debug = False
|
||||
tls_sni_01_port = 443
|
||||
logs_dir = :logs_dir
|
||||
apache_vhost_root = /etc/apache2/sites-available
|
||||
configurator = None
|
||||
must_staple = False
|
||||
[[webroot_map]]
|
||||
# :hostname = :webroot_path
|
||||
|
Loading…
x
Reference in New Issue
Block a user