From 5a9040c691566d6a9152708e22cfcd5009058da5 Mon Sep 17 00:00:00 2001 From: Patrice De Saint Steban Date: Thu, 5 Dec 2024 11:15:54 +0000 Subject: [PATCH] cacerts --- .circleci/config.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index d6dd41c..53f1a32 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -83,6 +83,21 @@ jobs: # a collection of steps sudo rm -f /etc/ssl/certs/java/cacerts # Créer un lien symbolique vers les certificats système sudo ln -sf /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/java/cacerts + - run: + name: Reinstall Cacerts + command: | + # Supprimer toute trace de fichiers problématiques + if [ -e /etc/ssl/certs/java/cacerts ]; then + sudo rm -rf /etc/ssl/certs/java/cacerts + fi + # Réinstaller ca-certificates-java et OpenJDK + sudo apt-get update && sudo apt-get install --reinstall -y ca-certificates-java openjdk-11-jre-headless + # Forcer la régénération du keystore + sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure + # Vérifier que le keystore est valide + sudo keytool -list -keystore /etc/ssl/certs/java/cacerts -storepass changeit + # Régler les permissions + sudo chmod 644 /etc/ssl/certs/java/cacerts - run: name: Install Python 3 command: |