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

Co-authored-by: Hisham Anver <Hisham.Anver@team.telstra.com>
pull/66/head
hishamanver 2020-11-14 19:50:58 +11:00 committed by GitHub
parent 18c9ca4983
commit 3bb9f15061
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ CA_SRL_FILE=/ca/ca.srl
if [ -f "$CA_CRT_FILE" ] ; then if [ -f "$CA_CRT_FILE" ] ; then
logInfo "CA already exists. Good. We'll reuse it." logInfo "CA already exists. Good. We'll reuse it."
if [ ! -f "$CA_SRL_FILE" ] ; then
echo 01 > ${CA_SRL_FILE}
fi
else else
logInfo "No CA was found. Generating one." 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." 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."