[OT] OSSEC key registration

ImAMacGuy
Valued Contributor II

I've been tasked with writing a script that will have each client install of OSSEC register itself with the server (which then issues a key for the client) then take that key and enter it into the client side config..

the manual steps are as follows...

Register/enroll new agents on OSSEC server:
<log into server>
sudo su -
/var/ossec/bin/manage_agents
a
<enter hostname here>
any
<enter ID here>
y
 
Importing key on client:
<log into client>
sudo su -
/var/ossec/bin/manage_agents
i
<enter key here>
y
/var/ossec/bin/ossec-control restart

any thoughts and suggestions are welcome.

0 REPLIES 0