Hi Gokul,
I could not find any filebeat.cert and server.cert certificate files. I believe you are looking for these certificates it's belong to Wazuh server-side certificates.
wazuh-certificates/
├── admin-key.pem
├── admin.pem
├── root-ca.key
├── root-ca.pem
├── server-key.pem
└── server.pem
As I mentioned earlier navigate to your matching Wazuh version.

If you already have a root Certificate Authority (CA) and need to generate certificates for Wazuh server nodes using the existing root CA, you can follow these steps:
https://documentation.wazuh.com/current/user-manual/wazuh-server-cluster.html#generating-wazuh-server-certificates-using-the-pre-existing-root-caFirst, you need to create a
config.yml file and You must specify the details for only the Wazuh server node(s) if you want to create certificates
nodes:
# Wazuh server nodes
# If there is more than one Wazuh server
# node, each one must have a node_type
server:
- name: wazuh-1
ip: "<WAZUH_MANAGER_IP_ADDRESS>"
# node_type: master
#- name: wazuh-2
# ip: "<WAZUH_MANAGER_IP_ADDRESS>"
# node_type: worker
#- name: wazuh-3
# ip: "<WAZUH_MANAGER_IP_ADDRESS>"
# node_type: worker
Run the command below to create Wazuh server certificates from the config.yml file using the pre-existing root CA keys:
bash wazuh-certs-tool.sh -ws /path/to/root-ca.pem /path/to/root-ca.keyOnce the certificates have been generated, you will need to rename and move the Wazuh server certificate to the corresponding Wazuh server nodes. By default, the certificates should be placed in the
/etc/filebeat/certs/ directory, as specified in the Filebeat configuration file located at
/etc/filebeat/filebeat.yml. If the directory does not already exist, you must create it before proceeding.
mv /path/to/server-key.pem /etc/filebeat/certs/filebeat-key.pem
mv /path/to/server.pem /etc/filebeat/certs/filebeat.pem
Let me know if you need further assistance.
Regards,
Hasitha Upekshitha