diff --git a/build_and_verify_pki.sh b/build_and_verify_pki.sh index ef68122..92a29a3 100644 --- a/build_and_verify_pki.sh +++ b/build_and_verify_pki.sh @@ -26,9 +26,10 @@ mkdir -p /root/server/{certs,csr,private} ## II - Mise en place des fichiers de configuration # Installation de curl -if ! dpkg -l | grep -q curl; then - apt install -y curl -fi + +apt update -y && apt upgrade -y && apt install -y openssl curl apache2 + + # Création des fichiers de configuration curl https://git.yh.genj.fr/polaire/IRSS010-Public_Keys_Infrastructure/raw/branch/main/ca/openssl.conf > /root/ca/openssl.cnf curl https://git.yh.genj.fr/polaire/IRSS010-Public_Keys_Infrastructure/raw/branch/main/ca-intermediaire/openssl.cnf > /root/ca-intermediaire/openssl.cnf