Skip to content

Commit 3bb9f15

Browse files
hishamanverHisham Anver
and
Hisham Anver
authored
add ca_srl creation when custom cert and key are provided (#65)
Co-authored-by: Hisham Anver <[email protected]>
1 parent 18c9ca4 commit 3bb9f15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: create_ca_cert.sh

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ CA_SRL_FILE=/ca/ca.srl
3131

3232
if [ -f "$CA_CRT_FILE" ] ; then
3333
logInfo "CA already exists. Good. We'll reuse it."
34+
if [ ! -f "$CA_SRL_FILE" ] ; then
35+
echo 01 > ${CA_SRL_FILE}
36+
fi
3437
else
3538
logInfo "No CA was found. Generating one."
3639
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."

0 commit comments

Comments
 (0)