YYYY-MM-DDThh:mm:ss error vcha[37400] [Originator@6876 sub=IO.Http opID=SWI-########] User agent failed to send request; (null), N7Vmacore3Ssl18SSLVerifyExceptionE(SSL Exception:Verification parameters:--> PeerThumbprint: ##:##:##:##:##:##:##:##:##:##:##:##:##:##:##--> ExpectedThumbprint:--> ExpectedPeerName: <vCenter FQDN>--> The remote host certificate has these problems:-->--> * unable to get issuer certificate)
YYYY-MM-DDThh:mm:ss info vcha[41137] [Originator@6876 sub=Cluster opID=SWI-41a7] hostId=##:##:##:## state=Slave master=##:##:##:## isolated=false host-list-version=1 config-version=0 vm-metadata-version=0 slv-mst-tdiff-sec=0YYYY-MM-DDThh:mm:ss error vcha[41143] [Originator@6876 sub=VchaUtil] Error executing command /opt/vmware/vpostgres/current/bin/psql: exit status=[2], stdout=[], stderr=[psql.bin: SSL error: certificate verify failed
When vCenter HA is recreated after changes like Machine SSL certificate replacement, the certificate chain might have missed or any intermediate certificate might have been expired or replaced in the environment.
The solution to fix the issue is to ensure certificate chain is complete and verifiable.
Note: Ensure to take an offline snapshot of vCenter(s) before making changes to the vCenter server. Refer: Snapshot Best practices for vCenter Server Virtual Machines
echo "" | openssl s_client -connect <vCenter FQDN>:443 | openssl x509 -text -noout -fingerprint/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS --text | less/usr/lib/vmware-vmafd/bin/dir-cli trustedcert list/usr/lib/vmware-vmafd/bin/dir-cli trustedcert get --id <CN_id> --login [email protected] --password <PASSWORD> --outcert /tmp/CA_certificate.crt/usr/lib/vmware-vmafd/bin/dir-cli trustedcert publish --cert /tmp/CA_certificate.crtMore troubleshooting steps on vCenter HA can be found here