Hello,
As indicated here:
https://documentation.wazuh.com/current/user-manual/agents/remote-upgrading/install-custom-wpk.html#install-the-root-ca-into-the-agent
You can store the new certificate in the agent machine with a different name or on a different path and include it in the configuration with a new ca_store tag:
<agent-upgrade> <ca_verification> <enabled>yes</enabled> <ca_store>/var/ossec/etc/wpk_root.pem</ca_store> <ca_store>/path/to/certificate</ca_store> </ca_verification> </agent-upgrade>This way you can add the new certificate without removing the default one.