Unable to import key to the agent in windows

1,603 views
Skip to first unread message

Srikar Naramsetty

unread,
Apr 25, 2022, 10:30:06 AM4/25/22
to Wazuh mailing list
Hi Team,
I am having a strange issue in one of the windows vm's. I installed wazuh agent and trying to configure it by importing the key which I generate by creating the agent using POST API call.

.\manage_agents.exe -i MDM0IHNyaWthci10ZXN0IDEwLjE4MC4zLjE5OSA4MmXXXXXXXX

2022/04/25 10:23:14 manage_agents: ERROR: CryptAcquireContext no Flag: (2)
2022/04/25 10:23:14 manage_agents: CRITICAL: randombytes failed for all possible methods for accessing random data


How can I fix this? This issue I am seeing in only one of the windows vm and not in others.

Thanks,
Srikar

Matias Pereyra

unread,
Apr 25, 2022, 3:43:50 PM4/25/22
to Wazuh mailing list
Hello!

Are you sure you are running the CMD as an administrator? Have you tried PowerShell too?
To reproduce this issue, could you tell us the exact OS version you have? I was unable to reproduce it on Windows 8.

Remember that we have another method to register agents: Enrollment via agent configuration. The agent can request a new key on its own if you configure the manager's address in ossec.conf and restart the agent.

Regards.
Reply all
Reply to author
Forward
0 new messages