Created
October 1, 2022 13:38
-
-
Save taylorwalton/2e20b380b3f1c531984b16cf09441cff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /etc/wazuh-dashboard/certs | |
tar -xf ./wazuh-certificates.tar -C /etc/wazuh-dashboard/certs/ ./$NODE_NAME.pem ./$NODE_NAME-key.pem ./root-ca.pem | |
mv -n /etc/wazuh-dashboard/certs/$NODE_NAME.pem /etc/wazuh-dashboard/certs/dashboard.pem | |
mv -n /etc/wazuh-dashboard/certs/$NODE_NAME-key.pem /etc/wazuh-dashboard/certs/dashboard-key.pem | |
chmod 500 /etc/wazuh-dashboard/certs | |
chmod 400 /etc/wazuh-dashboard/certs/* | |
chown -R wazuh-dashboard:wazuh-dashboard /etc/wazuh-dashboard/certs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment