/var/log/vmsyslogd.err on the ESXi host, you see log entries similar to the following:vmsyslog.loggers.network : ERROR ] SSL certificate verification failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1016)
vmsyslog.loggers.network : ERROR ] SSL certificate verification failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1016)
vmsyslog.loggers.network : ERROR ] failed to establish connection to remote syslog server 'FQDN of targetserver':23514
VMware ESXi 7.x
VMware ESXi 8.x
Syslog server is failing to trust ESXi certificate.
To resolve this issue, you must export the root signing certificate from vCenter Server (or the certificate authority that signed the ESXi/Syslog certificates) and ensure it is trusted.
Follow these steps to identify and export the correct root certificate:
Log in to the ESXi host via SSH.
Verify the signing certificate details by checking the /etc/vmware/ssl/rui.crt file:
openssl x509 -in /etc/vmware/ssl/rui.crt -text -noout
Locate the Authority Key Identifier within the certificate output. For example:
X509v3 Authority Key Identifier:
keyid:AA:BB:CC:DD:EE:FF:GG:AA:BB:CC:DD:EE:FF:GG:AA:BB:CC:DD:EE
Log in to your vCenter Server via SSH.
List the trusted root certificates stored in the VMware Certificate Store (VECS) to locate the matching Authority Key Identifier:
/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS --text | less
Note the Alias of the certificate entry that matches your Authority Key Identifier.
Export the root certificate to a file using the identified alias:
/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store TRUSTED_ROOTS --alias <ALIAS_NAME> --output /tmp/trustedroot.crt
Provide and import this trustedroot.crt certificate into your remote syslog server environment to establish mutual trust, or ensure the appropriate CA chain is updated on the ESXi side depending on your environment's specific syslog target capabilities.