chore: reintroduced ca on the repo

This commit is contained in:
Rafael Taranto 2024-08-11 08:05:28 +01:00
parent 13c1d71f39
commit d4f703b0fc
7 changed files with 50 additions and 37 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
FILE_1=/etc/ssl/certs/Lamassu_CA.pem
FILE_2=/etc/ssl/certs/Lamassu_OP.pem
FILE_3=/etc/ssl/certs/Lamassu_OP_Root_CA.pem
FILE_4=/etc/ssl/certs/Lamassu_OP_Root_CA.srl
@ -7,7 +8,7 @@ FILE_5=/etc/ssl/private/Lamassu_OP.key
FILE_6=/etc/ssl/private/Lamassu_OP_Root_CA.key
echo "Checking for the existence of certificates..."
if [[ ! -f "$FILE_2" || ! -f "$FILE_3" || ! -f "$FILE_4" || ! -f "$FILE_5" || ! -f "$FILE_6" ]]; then
if [[ ! -f "$FILE_1" || ! -f "$FILE_2" || ! -f "$FILE_3" || ! -f "$FILE_4" || ! -f "$FILE_5" || ! -f "$FILE_6" ]]; then
echo "No Lamassu certificates found. Building them..."
bash /lamassu-server/tools/build-docker-certs.sh
fi