indexer-connector: WARNING: IndexerConnector initialization failed for index 'wazuh-states-vulnerabilities-wazuh', retrying until the connection is successful.
Here is ossec.conf :
<vulnerability-detection>
<enabled>yes</enabled>
<index-status>yes</index-status>
<feed-update-interval>60m</feed-update-interval>
</vulnerability-detection>
<indexer>
<enabled>yes</enabled>
<hosts>
<host>https://wazuh-indexer-0.wazuh-indexer:9200</host>
</hosts>
<ssl>
<certificate_authorities>
<ca>/etc/ssl/root-ca.pem</ca>
</certificate_authorities>
<certificate>/etc/ssl/filebeat.pem</certificate>
<key>/etc/ssl/filebeat.key</key>
</ssl>.
Here are the keys:
location: /etc/ssl/ and i get this location from filebeat.yml file
-rw-r--r--. 1 root 101 1110 Jul 12 08:21 root-ca.pem
-rw-r--r--. 1 root 101 1115 Jul 12 08:21 filebeat.pem
-rw-r--r--. 1 root 101 1708 Jul 12 08:21 filebeat.key
curl -u "admin:myadmin" --cert "/etc/ssl/filebeat.pem" --key "/etc/ssl/filebeat.key" --cacert "/etc/ssl/root-ca.pem" "https://wazuh-indexer-0.wazuh-indexer:9200"
The error is here.
curl: (60) SSL: certificate subject name '*.wazuh-indexer' does not match target host name 'wazuh-indexer-0.wazuh-indexer'
could you please share the steps to resolve this?