forked from wazuh/wazuh-docker
Fix permission in certificates
This commit is contained in:
@@ -38,4 +38,5 @@ chmod 700 /$CERT_TOOL
|
|||||||
echo "Moving created certificates to destination directory"
|
echo "Moving created certificates to destination directory"
|
||||||
cp /wazuh-certificates/* /certificates/
|
cp /wazuh-certificates/* /certificates/
|
||||||
echo "changing certificate permissions"
|
echo "changing certificate permissions"
|
||||||
chmod -R 666 /certificates/*
|
chmod -R 500 /certificates
|
||||||
|
chmod -R 400 /certificates/*
|
||||||
|
|||||||
@@ -38,4 +38,5 @@ cp /wazuh-certificates/demo.dashboard.pem ${CONFIG_DIR}/certs/dashboard.pem
|
|||||||
cp /wazuh-certificates/demo.dashboard-key.pem ${CONFIG_DIR}/certs/dashboard-key.pem
|
cp /wazuh-certificates/demo.dashboard-key.pem ${CONFIG_DIR}/certs/dashboard-key.pem
|
||||||
cp /wazuh-certificates/root-ca.pem ${CONFIG_DIR}/certs/root-ca.pem
|
cp /wazuh-certificates/root-ca.pem ${CONFIG_DIR}/certs/root-ca.pem
|
||||||
|
|
||||||
chmod 640 ${CONFIG_DIR}/certs/*
|
chmod -R 500 ${CONFIG_DIR}/certs
|
||||||
|
chmod -R 400 ${CONFIG_DIR}/certs/*
|
||||||
@@ -104,3 +104,6 @@ cp -pr /wazuh-certificates/root-ca.key ${TARGET_DIR}${CONFIG_DIR}/root-ca.key
|
|||||||
cp -pr /wazuh-certificates/root-ca.pem ${TARGET_DIR}${CONFIG_DIR}/root-ca.pem
|
cp -pr /wazuh-certificates/root-ca.pem ${TARGET_DIR}${CONFIG_DIR}/root-ca.pem
|
||||||
cp -pr /wazuh-certificates/admin.pem ${TARGET_DIR}${CONFIG_DIR}/admin.pem
|
cp -pr /wazuh-certificates/admin.pem ${TARGET_DIR}${CONFIG_DIR}/admin.pem
|
||||||
cp -pr /wazuh-certificates/admin-key.pem ${TARGET_DIR}${CONFIG_DIR}/admin-key.pem
|
cp -pr /wazuh-certificates/admin-key.pem ${TARGET_DIR}${CONFIG_DIR}/admin-key.pem
|
||||||
|
|
||||||
|
chmod -R 500 ${TARGET_DIR}${CONFIG_DIR}
|
||||||
|
chmod -R 400 ${TARGET_DIR}${CONFIG_DIR}/*
|
||||||
Reference in New Issue
Block a user