Skip to content

Instantly share code, notes, and snippets.

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