From 0db09589fd7e8c933b9bd8c71007cd3959f22570 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 4 Jul 2018 00:59:48 -0600 Subject: [PATCH] fix linebreak issue with certs (for the brazillionth time) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5e0043f..0a615c8 100644 --- a/index.js +++ b/index.js @@ -278,7 +278,7 @@ module.exports.create = function (configs) { return PromiseA.all([ 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') ]); }).then(function () {