diff --git a/deployment/generate_stores.sh b/deployment/generate_stores.sh
index 91c6f6004540d22c79c1a1e70c0358a708ed939d..e74a8641720e689dd137d6b642ff8e54dbf08b4b 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 9eb4f0de044a0e8f8922613e11235b41c61465ca..9469d288905f7e89de582f95317b4b2d1c5d510e 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}"