Compare commits
3 Commits
c834d1603d
...
03fdbe157a
Author | SHA1 | Date |
---|---|---|
AJ ONeal | 03fdbe157a | |
AJ ONeal | 0393b1ae3a | |
AJ ONeal | 16637c4f67 |
10
index.js
10
index.js
|
@ -280,13 +280,17 @@ module.exports.create = function (configs) {
|
||||||
var bundleArchive = path.join(archiveDir, 'bundle' + checkpoints + '.pem');
|
var bundleArchive = path.join(archiveDir, 'bundle' + checkpoints + '.pem');
|
||||||
|
|
||||||
return mkdirpAsync(archiveDir).then(function () {
|
return mkdirpAsync(archiveDir).then(function () {
|
||||||
return PromiseA.all([
|
var ps = [
|
||||||
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 ].join('\n'), 'ascii')
|
||||||
, sfs.writeFileAsync(privkeyArchive, pems.privkey, 'ascii')
|
, sfs.writeFileAsync(privkeyArchive, pems.privkey, 'ascii')
|
||||||
, sfs.writeFileAsync(bundleArchive, pems.bundle, '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 () {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "le-store-certbot",
|
"name": "le-store-certbot",
|
||||||
"version": "2.2.2",
|
"version": "2.2.4",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "le-store-certbot",
|
"name": "le-store-certbot",
|
||||||
"version": "2.2.3",
|
"version": "2.2.4",
|
||||||
"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": {
|
||||||
|
|
Loading…
Reference in New Issue