Hi all,
Sorry for this later answer. Theres is only this error in wazuh worker:
2021/05/12 07:47:30 wazuh-modulesd:agent-upgrade: ERROR: (8116): Error response from agent: 'Could not verify signature’
(I am trying to update agents from release 4.1.4 to 4.1.5 in Windows). These are the errors in agent side:
2021/05/12 09:18:50 sca: INFO: Security Configuration Assessment scan finished. Duration: 3 seconds.
2021/05/12 09:18:59 ossec-agent: ERROR: Could not get message for (Application)
2021/05/12 09:19:10 ossec-agent: INFO: (6009): File integrity monitoring scan ended.
2021/05/12 09:47:28 ossec-agent: ERROR: (1117): Could not retrieve information of file '/var/ossec/etc/wpk_root.pem' due to [(2)-(No such file or directory)].
2021/05/12 09:47:28 ossec-agent: ERROR: Error verifying WPK certificate.
2021/05/12 09:47:28 wazuh-modulesd:agent-upgrade: ERROR: (8139): At unsign(): Could not unsign package file 'incoming\wazuh_agent_v4.1.5_windows.wpk'
2021/05/12 09:47:28 wazuh-modulesd:agent-upgrade: ERROR: (8131): At upgrade: 'Could not verify signature’
Why "2021/05/12 09:47:28 ossec-agent: ERROR: (1117): Could not retrieve information
of file '/var/ossec/etc/wpk_root.pem' due to [(2)-(No such file or directory)].”?? It is a Windows platform ...
Regarding your other question about loadblancer: there is a load balancer in
the middle, but I am only using one worker and manager is not exposed.
On the other side, I have configured agent-upgrade module using central config with the following content:
<agent-upgrade>
<enabled>yes</enabled>
<notification_wait_start>60s</notification_wait_start>
<notification_wait_factor>4</notification_wait_factor>
<notification_wait_max>2h</notification_wait_max>
<ca_verification>
<enabled>yes</enabled>
<ca_store>C:\Program Files (x86)\ossec-agent\wpk_root.pem</ca_store>
</ca_verification>
</agent-upgrade>
But it doesn't seem to work, because I have never had any entries in the logs …..