Created
October 1, 2022 13:02
-
-
Save taylorwalton/8cce27f4bcee3a9bd4f1b5125da70c9a 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-indexer/certs | |
tar -xf ./wazuh-certificates.tar -C /etc/wazuh-indexer/certs/ ./$NODE_NAME.pem ./$NODE_NAME-key.pem ./admin.pem ./admin-key.pem ./root-ca.pem | |
mv -n /etc/wazuh-indexer/certs/$NODE_NAME.pem /etc/wazuh-indexer/certs/indexer.pem | |
mv -n /etc/wazuh-indexer/certs/$NODE_NAME-key.pem /etc/wazuh-indexer/certs/indexer-key.pem | |
chmod 500 /etc/wazuh-indexer/certs | |
chmod 400 /etc/wazuh-indexer/certs/* | |
chown -R wazuh-indexer:wazuh-indexer /etc/wazuh-indexer/certs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment