summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSimon Rettberg2021-11-12 14:52:34 +0100
committerSimon Rettberg2021-11-12 14:52:34 +0100
commita12edcbb3bb842baee23a91525b5a60aa4255c16 (patch)
treed585fb8824b55c0ba6570ad93eb5f88cb028fc0d /scripts
parent[SshdConfigGenerator] Fix service target (diff)
downloadtmlite-bwlp-a12edcbb3bb842baee23a91525b5a60aa4255c16.tar.gz
tmlite-bwlp-a12edcbb3bb842baee23a91525b5a60aa4255c16.tar.xz
tmlite-bwlp-a12edcbb3bb842baee23a91525b5a60aa4255c16.zip
[install-https] Make sure newline is between cert and key
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install-https6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/install-https b/scripts/install-https
index ecb1b0a..dd7b1db 100755
--- a/scripts/install-https
+++ b/scripts/install-https
@@ -43,7 +43,11 @@ op_import ()
[ -r "$C" ] || exit 3
rm -f -- "$CHAIN_FILE"
# Create server.pem
- cat "$C" "$K" > "$CERT_KEY_FILE"
+ {
+ cat "$C"
+ echo
+ cat "$K"
+ } > "$CERT_KEY_FILE"
chmod 0600 "$CERT_KEY_FILE" || exit 4
rm -f -- "$C" "$K"
# If we have a chainfile, try to use it aswell