Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wazuh keeps trying to install new certificates #535

Closed
jurgenmehja opened this issue Jul 29, 2022 · 2 comments
Closed

Wazuh keeps trying to install new certificates #535

jurgenmehja opened this issue Jul 29, 2022 · 2 comments

Comments

@jurgenmehja
Copy link
Contributor

Hello Wazuh team,
the module doesn't check if the certificate's directory exists before trying to copy them:
Error: /Stage[main]/Wazuh::Indexer/Exec[Copy Indexer Certificates]/returns: change from 'notrun' to ['0'] failed: 'mkdir /etc/wazuh-indexer/certs && cp /tmp/wazuh-certificates/indexer.pem /etc/wazuh-indexer/certs && cp /tmp/wazuh-certificates/indexer-key.pem /etc/wazuh-indexer/certs && cp /tmp/wazuh-certificates/root-ca.pem /etc/wazuh-indexer/certs && cp /tmp/wazuh-certificates/admin.pem /etc/wazuh-indexer/certs && cp /tmp/wazuh-certificates/admin-key.pem /etc/wazuh-indexer/certs && chown wazuh-indexer:wazuh-indexer -R /etc/wazuh-indexer/certs && chmod 500 /etc/wazuh-indexer/certs && chmod 400 /etc/wazuh-indexer/certs/*' returned 1 instead of one of [0] (corrective)
Error: /Stage[main]/Wazuh::Dashboard/Exec[Copy Dashboard Certificates]/returns: change from 'notrun' to ['0'] failed: 'mkdir /etc/wazuh-dashboard/certs && cp /tmp/wazuh-certificates/dashboard.pem /etc/wazuh-dashboard/certs && cp /tmp/wazuh-certificates/dashboard-key.pem /etc/wazuh-dashboard/certs && cp /tmp/wazuh-certificates/root-ca.pem /etc/wazuh-dashboard/certs && chown wazuh-dashboard:wazuh-dashboard -R /etc/wazuh-dashboard/certs && chmod 500 /etc/wazuh-dashboard/certs && chmod 400 /etc/wazuh-dashboard/certs/*' returned 1 instead of one of [0] (corrective)
Error: /Stage[main]/Wazuh::Filebeat_oss/Exec[Copy Filebeat Certificates]/returns: change from 'notrun' to ['0'] failed: 'mkdir /etc/filebeat/certs && cp /tmp/wazuh-certificates/server.pem /etc/filebeat/certs/filebeat.pem && cp /tmp/wazuh-certificates/server-key.pem /etc/filebeat/certs/filebeat-key.pem && cp /tmp/wazuh-certificates/root-ca.pem /etc/filebeat/certs && chown root:root -R /etc/filebeat/certs && chmod 500 /etc/filebeat/certs && chmod 400 /etc/filebeat/certs/*' returned 1 instead of one of [0] (corrective)

@poloz-lab
Copy link
Contributor

Hi @jurgenmehja ,

I had the same problem but PR #516 fixes this problem.
It has been merged in branch "4.3".

@jurgenmehja
Copy link
Contributor Author

Just saw it, great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants