Skip to content

Commit 8bfb0a9

Browse files
authored
allow setting certs location so mounted cert folder doesnt need to match expected names (#38)
1 parent 3bb9f15 commit 8bfb0a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: create_ca_cert.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ CN_WEB=${CN_WEB:0:64}
2525
mkdir -p /certs /ca
2626
cd /ca
2727

28-
CA_KEY_FILE=/ca/ca.key
29-
CA_CRT_FILE=/ca/ca.crt
30-
CA_SRL_FILE=/ca/ca.srl
28+
CA_KEY_FILE=${CA_KEY_FILE:-/ca/ca.key}
29+
CA_CRT_FILE=${CA_CRT_FILE:-/ca/ca.crt}
30+
CA_SRL_FILE=${CA_SRL_FILE:-/ca/ca.srl}
3131

3232
if [ -f "$CA_CRT_FILE" ] ; then
3333
logInfo "CA already exists. Good. We'll reuse it."
@@ -121,4 +121,4 @@ logInfo "Concatenating fullchain.pem..."
121121
cat web.crt ia.crt ${CA_CRT_FILE} > fullchain.pem
122122

123123
logInfo "Concatenating fullchain_with_key.pem"
124-
cat fullchain.pem web.key > fullchain_with_key.pem
124+
cat fullchain.pem web.key > fullchain_with_key.pem

0 commit comments

Comments
 (0)