add ca_srl creation when custom cert and key are provided (#65)

Co-authored-by: Hisham Anver <Hisham.Anver@team.telstra.com>
This commit is contained in:
hishamanver
2020-11-14 09:50:58 +01:00
committed by GitHub
co-authored by Hisham Anver
parent 18c9ca4983
commit 3bb9f15061
+3
View File
@@ -31,6 +31,9 @@ CA_SRL_FILE=/ca/ca.srl
if [ -f "$CA_CRT_FILE" ] ; then
logInfo "CA already exists. Good. We'll reuse it."
if [ ! -f "$CA_SRL_FILE" ] ; then
echo 01 > ${CA_SRL_FILE}
fi
else
logInfo "No CA was found. Generating one."
logInfo "*** Please *** make sure to mount /ca as a volume -- if not, everytime this container starts, it will regenerate the CA and nothing will work."