We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bb9f15 commit 8bfb0a9Copy full SHA for 8bfb0a9
create_ca_cert.sh
@@ -25,9 +25,9 @@ CN_WEB=${CN_WEB:0:64}
25
mkdir -p /certs /ca
26
cd /ca
27
28
-CA_KEY_FILE=/ca/ca.key
29
-CA_CRT_FILE=/ca/ca.crt
30
-CA_SRL_FILE=/ca/ca.srl
+CA_KEY_FILE=${CA_KEY_FILE:-/ca/ca.key}
+CA_CRT_FILE=${CA_CRT_FILE:-/ca/ca.crt}
+CA_SRL_FILE=${CA_SRL_FILE:-/ca/ca.srl}
31
32
if [ -f "$CA_CRT_FILE" ] ; then
33
logInfo "CA already exists. Good. We'll reuse it."
@@ -121,4 +121,4 @@ logInfo "Concatenating fullchain.pem..."
121
cat web.crt ia.crt ${CA_CRT_FILE} > fullchain.pem
122
123
logInfo "Concatenating fullchain_with_key.pem"
124
-cat fullchain.pem web.key > fullchain_with_key.pem
+cat fullchain.pem web.key > fullchain_with_key.pem
0 commit comments