allow setting certs location so mounted cert folder doesnt need to match expected names (#38)
parent
3bb9f15061
commit
8bfb0a9ef6
|
@ -25,9 +25,9 @@ CN_WEB=${CN_WEB:0:64}
|
|||
mkdir -p /certs /ca
|
||||
cd /ca
|
||||
|
||||
CA_KEY_FILE=/ca/ca.key
|
||||
CA_CRT_FILE=/ca/ca.crt
|
||||
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}
|
||||
|
||||
if [ -f "$CA_CRT_FILE" ] ; then
|
||||
logInfo "CA already exists. Good. We'll reuse it."
|
||||
|
@ -121,4 +121,4 @@ logInfo "Concatenating fullchain.pem..."
|
|||
cat web.crt ia.crt ${CA_CRT_FILE} > fullchain.pem
|
||||
|
||||
logInfo "Concatenating fullchain_with_key.pem"
|
||||
cat fullchain.pem web.key > fullchain_with_key.pem
|
||||
cat fullchain.pem web.key > fullchain_with_key.pem
|
||||
|
|
Loading…
Reference in New Issue