Wazuh API Issues #6973
-
Hey All, I'm currently having some issues using the Wazuh API and require some assistance troubleshooting. When trying to run an Invoke-WebRequest or curl I get a 401 Unauthorized error. I am using the default username and password to try authenticate with the API. curl command im running is curl -k -u username:password "https://localhost:55000?pretty" Cheers kl3ss |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Have looked through the Wazuh API logs and all I am seeing is Authentication failed. Am using the same creds specified in the Security Onion 2.0 Documentation. |
Beta Was this translation helpful? Give feedback.
-
We may have disabled/removed the default user. It's been a bit since I've looked at it. You can (and should) add a new user, like:
(you will be prompted to provide a password) Next, restart Wazuh:
Then, try connecting to the API:
|
Beta Was this translation helpful? Give feedback.
We may have disabled/removed the default user. It's been a bit since I've looked at it.
You can (and should) add a new user, like:
so-wazuh-user-add testuser
(you will be prompted to provide a password)
Next, restart Wazuh:
so-wazuh-restart
Then, try connecting to the API:
curl -k -u testuser:testpassword https://localhost:55000