From 935187675e370e4583e4f1d7bb844424f26cecfc Mon Sep 17 00:00:00 2001 From: Polaire Date: Fri, 14 Mar 2025 08:52:46 +0100 Subject: [PATCH] Actualiser build_and_verify_pki.sh --- build_and_verify_pki.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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