Skip to content
Snippets Groups Projects
Commit 5a5709f8 authored by Mathieu Leguay's avatar Mathieu Leguay
Browse files

[DEVOPS] Clean scripts of the PKI

parent 600115f9
No related branches found
No related tags found
1 merge request!1Feature/design/1
...@@ -224,7 +224,6 @@ for SERVER in $(ls ${REPERTOIRE_CERTIFICAT}/server/hosts/); do ...@@ -224,7 +224,6 @@ for SERVER in $(ls ${REPERTOIRE_CERTIFICAT}/server/hosts/); do
P12_KEYSTORE=${REPERTOIRE_CERTIFICAT}/server/hosts/${SERVER}/${COMPONENT}.p12 P12_KEYSTORE=${REPERTOIRE_CERTIFICAT}/server/hosts/${SERVER}/${COMPONENT}.p12
CRT_KEY_PASSWORD=$(getComponentPassphrase certs "server_${COMPONENT}_key") CRT_KEY_PASSWORD=$(getComponentPassphrase certs "server_${COMPONENT}_key")
JKS_PASSWORD=$(getKeystorePassphrase "keystores_server_${COMPONENT}") JKS_PASSWORD=$(getKeystorePassphrase "keystores_server_${COMPONENT}")
pki_logger "${JKS_PASSWORD}"
generateHostKeystore ${COMPONENT} \ generateHostKeystore ${COMPONENT} \
${JKS_KEYSTORE} \ ${JKS_KEYSTORE} \
......
...@@ -251,7 +251,6 @@ function setComponentPassphrase { ...@@ -251,7 +251,6 @@ function setComponentPassphrase {
local RETURN_CODE=0 local RETURN_CODE=0
local VAULT_FILE=$(getVaultFile "$TYPE") local VAULT_FILE=$(getVaultFile "$TYPE")
local VAULT_PASS=$(getVaultPass "$TYPE") local VAULT_PASS=$(getVaultPass "$TYPE")
local KEY_PREFIX=$(getKeyPrefix "$TYPE")
if [ ! -f "${VAULT_FILE}" ]; then if [ ! -f "${VAULT_FILE}" ]; then
pki_logger "ERROR" "The vault file is not found. Please, initialize it before call me ! Vault file: ${VAULT_FILE}" pki_logger "ERROR" "The vault file is not found. Please, initialize it before call me ! Vault file: ${VAULT_FILE}"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment