Skip to content

Instantly share code, notes, and snippets.

@taylorwalton
Created October 1, 2022 13:02
Show Gist options
  • Save taylorwalton/8cce27f4bcee3a9bd4f1b5125da70c9a to your computer and use it in GitHub Desktop.
Save taylorwalton/8cce27f4bcee3a9bd4f1b5125da70c9a to your computer and use it in GitHub Desktop.
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