Hi,
I have wazuh 4.5 installed.
I've followed the instructions and setup the system on the wazuh manager machine.
I am trying to use the python3.9 that comes with the Wazuh package, version 4.5, to run the siem.py, but I get this error message:
[root@localhost Sophos-Central-SIEM-Integration]# /var/ossec/framework/python/bin/python3.9 siem.py
Sophos state file not found
Config endpoint=/siem/v1/events, filename='result.txt' and format='json'
Fetching the tenants/customers list by calling the Sophos Cental API
fetching access_token from sophos
body :: {'grant_type': 'client_credentials', 'scope': 'token', 'client_id': 'xxxxxxxxxxxxxxxxxxxxx', 'client_secret': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'}
Error :: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)>
JWT token not found for client id :: 7b84d231-ad81-4e4c-a75a-4c64d02f1339
Error :: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)>
Traceback (most recent call last):
File "/Sophos-Central-SIEM-Integration/siem.py", line 413, in <module>
main()
File "/Sophos-Central-SIEM-Integration/siem.py", line 410, in main
run(options, config_data, state_data)
File "/Sophos-Central-SIEM-Integration/siem.py", line 401, in run
get_alerts_or_events(
File "/Sophos-Central-SIEM-Integration/siem.py", line 376, in get_alerts_or_events
results = api_client_obj.get_alerts_or_events()
File "/Sophos-Central-SIEM-Integration/api_client.py", line 241, in get_alerts_or_events
raise Exception(tenant_obj["error"])
Exception: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)>
is this an issue with Wazuh's python installation?
Thank you.