Compare commits
2 Commits
03fdbe157a
...
3f93292c9a
Author | SHA1 | Date |
---|---|---|
AJ ONeal | 3f93292c9a | |
AJ ONeal | 4708eabe84 |
6
index.js
6
index.js
|
@ -280,17 +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 () {
|
||||||
var ps = [
|
var ps = 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 ].join('\n'), 'ascii')
|
||||||
, sfs.writeFileAsync(privkeyArchive, pems.privkey, 'ascii')
|
, sfs.writeFileAsync(privkeyArchive, pems.privkey, 'ascii')
|
||||||
];
|
]);
|
||||||
if (pems.bundle) {
|
if (pems.bundle) {
|
||||||
var bundleP = sfs.writeFileAsync(bundleArchive, pems.bundle, 'ascii');
|
var bundleP = sfs.writeFileAsync(bundleArchive, pems.bundle, 'ascii');
|
||||||
ps.push(bundleP);
|
ps.push(bundleP);
|
||||||
}
|
}
|
||||||
return PromiseA.all(ps);
|
return 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.4",
|
"version": "2.2.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "le-store-certbot",
|
"name": "le-store-certbot",
|
||||||
"version": "2.2.4",
|
"version": "2.2.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": {
|
||||||
|
|
Loading…
Reference in New Issue