summaryrefslogtreecommitdiffstats
path: root/scripts/install-https
diff options
context:
space:
mode:
authorSimon Rettberg2014-11-18 19:37:46 +0100
committerSimon Rettberg2014-11-18 19:37:46 +0100
commitaae5df41c5af3bce58b00bd5171b07a97cb2ac17 (patch)
treefc2bba05d86d47f5e0cf6ce37ade8e50356f4a7a /scripts/install-https
parent[LighttpdHttps] Allow importing a certificate chain (diff)
downloadtmlite-bwlp-aae5df41c5af3bce58b00bd5171b07a97cb2ac17.tar.gz
tmlite-bwlp-aae5df41c5af3bce58b00bd5171b07a97cb2ac17.tar.xz
tmlite-bwlp-aae5df41c5af3bce58b00bd5171b07a97cb2ac17.zip
[https] Forgot to chmod 0600 the self-signed certificate
Diffstat (limited to 'scripts/install-https')
-rwxr-xr-xscripts/install-https1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/install-https b/scripts/install-https
index bb17abc..cfefe8b 100755
--- a/scripts/install-https
+++ b/scripts/install-https
@@ -55,6 +55,7 @@ op_random ()
[ -z "$1" ] && exit 1
rm -f -- "$CHAINFILE"
openssl req -x509 -new -newkey rsa:4096 -keyout "$CERTFILE" -out "$CERTFILE" -days 5000 -nodes -subj "/C=DE/ST=Nowhere/L=Springfield/O=bwLehrpool/CN=$1" || exit 2
+ chmod 0600 "$CERTFILE" || exit 3
}
OP=$1