Securing the Wazuh manager API

The communication between the Wazuh dashboard and the Wazuh manager API is encrypted with HTTPS by default. The installation issues the Wazuh manager API private key and certificate from the Wazuh manager CA. Additionally, every installation creates the following Wazuh manager API users, each with its own password set at installation:

  • wazuh

  • wazuh-internal-client

The passwords are stored in /etc/wazuh-manager/export/credentials.env on the Wazuh manager, as WAZUH_MANAGER_API_PASSWORD for wazuh and WAZUH_MANAGER_WUI_PASSWORD for wazuh-internal-client. Only root can read this file. To print the password of the wazuh user, run the following command:

# sed -n 's/^WAZUH_MANAGER_API_PASSWORD=//p' /etc/wazuh-manager/export/credentials.env

Securing the Wazuh manager API is crucial after installing the Wazuh manager.

Note

We recommend changing the generated passwords. Clients trust the Wazuh manager API certificate only if they trust the Wazuh manager CA. Distribute /etc/wazuh-manager/export/ca.pem to the clients that connect to the Wazuh manager API.