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

[DEVOPS] Add README and update cleanup method for certificates

parent 5a5709f8
No related branches found
No related tags found
1 merge request!1Feature/design/1
Put your external clients certificates' CA here (.crt)
\ No newline at end of file
Put your external client public certificates here (.crt)
\ No newline at end of file
Put your Vitam certificates' CA here (.crt)
\ No newline at end of file
Put your Vitam certificates here (.crt)
\ No newline at end of file
......@@ -278,7 +278,10 @@ initVault certs ${ERASE}
if [ "${ERASE}" == "true" ]; then
if [ -d ${REPERTOIRE_CERTIFICAT} ]; then
# We remove all generated certs
find "${REPERTOIRE_CERTIFICAT}/" -mindepth 1 -maxdepth 1 -type d -exec rm -Rf {} \;
find ${REPERTOIRE_CERTIFICAT} -type f -name *.crt -exec rm -f {} \;
find ${REPERTOIRE_CERTIFICAT} -type f -name *.key -exec rm -f {} \;
find ${REPERTOIRE_CERTIFICAT} -type f -name *.pem -exec rm -f {} \;
find ${REPERTOIRE_CERTIFICAT} -type d -empty -delete
fi
fi
if [ ! -d ${REPERTOIRE_CERTIFICAT} ]; then
......
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