From 5a5709f8211803fad8d47ae5d17a805370a32895 Mon Sep 17 00:00:00 2001
From: Mathieu Leguay <mathieu.leguay@teamdlab.com>
Date: Thu, 23 Apr 2020 12:27:26 +0200
Subject: [PATCH] [DEVOPS] Clean scripts of the PKI

---
 deployment/generate_stores.sh           | 1 -
 deployment/pki/scripts/lib/functions.sh | 1 -
 2 files changed, 2 deletions(-)

diff --git a/deployment/generate_stores.sh b/deployment/generate_stores.sh
index 91c6f600..e74a8641 100755
--- a/deployment/generate_stores.sh
+++ b/deployment/generate_stores.sh
@@ -224,7 +224,6 @@ for SERVER in $(ls ${REPERTOIRE_CERTIFICAT}/server/hosts/); do
         P12_KEYSTORE=${REPERTOIRE_CERTIFICAT}/server/hosts/${SERVER}/${COMPONENT}.p12
         CRT_KEY_PASSWORD=$(getComponentPassphrase certs "server_${COMPONENT}_key")
         JKS_PASSWORD=$(getKeystorePassphrase "keystores_server_${COMPONENT}")
-        pki_logger "${JKS_PASSWORD}"
 
         generateHostKeystore    ${COMPONENT} \
                                 ${JKS_KEYSTORE} \
diff --git a/deployment/pki/scripts/lib/functions.sh b/deployment/pki/scripts/lib/functions.sh
index 9eb4f0de..9469d288 100755
--- a/deployment/pki/scripts/lib/functions.sh
+++ b/deployment/pki/scripts/lib/functions.sh
@@ -251,7 +251,6 @@ function setComponentPassphrase {
     local RETURN_CODE=0
     local VAULT_FILE=$(getVaultFile "$TYPE")
     local VAULT_PASS=$(getVaultPass "$TYPE")
-    local KEY_PREFIX=$(getKeyPrefix "$TYPE")
 
     if [ ! -f "${VAULT_FILE}" ]; then
         pki_logger "ERROR" "The vault file is not found. Please, initialize it before call me ! Vault file: ${VAULT_FILE}"
-- 
GitLab