Client side:
[] Connected to auto enrollment server at IP: 10.18.119.14
[] Pulled hostname and IP, encrypted data, and now sending to server.
[] We received our new pairing key for OSSEC, closing server connection.
[] Removing any old keys.
[] Successfully imported the new pairing key.
[] Stopping the OSSEC service, just in case its running.
[] Overwriting the ossec.conf to incorporate server host IP address.
[] Finished. Started the OSSEC service. Auto Enrollment for OSSEC is now finish
Server side:
Client connected with ('10.18.139.101', 58745)
new() missing 1 required positional argument: 'mode'
Traceback (most recent call last):
File "auto_server.py", line 164, in handle
data = aescall(secret, data, "decrypt")
File "auto_server.py", line 145, in aescall
cipher = AES.new(secret)
TypeError: new() missing 1 required positional argument: 'mode'
Pairing complete. Terminating connection to client.
But the agent is not being registered and hence no key can be retrieved and added to the agent config. Can you please help?