FATAL: could not load server certificate file "/storage/db/vpostgres_ssl/server.crt": SSL Error code 2147483650
or
FATAL: could not load server certificate file "/storage/db/vpostgres_ssl/server.crt": No such file or directory
When reviewing the passive node's /var/log/vmware/vcha/vcha.log, the below errors are observed: YYYY-MM-DDTHH:MM:SSZ info vcha[21360] [Originator@6876 sub=Cluster opID=###-####] 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:SSZ error vcha[21381] [Originator@6876 sub=VchaUtil] Error executing command /opt/vmware/vpostgres/current/bin/psql: exit status=[2], stdout=[], stderr=[psql.bin: error: SSL error: certificate verify failedYYYY-MM-DDTHH:MM:SSZ error vcha[21381] [Originator@6876 sub=VchaUtil] Error executing command /opt/vmware/vpostgres/current/bin/psql: exit status=[2], stdout=[], stderr=[psql.bin: error: SSL error: certificate verify failed
VMware vCenter Server 8.x
VMware vCenter Server 7.x
This was caused due to a mismatch between the vPostgres SSL certificate and the SSL certificate of the vCenter.
To update the certificate and resolve the issue, follow these steps:
/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store MACHINE_SSL_CERT --alias __MACHINE_CERT --output /var/core/Machine_SSL.crt
/usr/lib/vmware-vmafd/bin/vecs-cli entry getkey --store MACHINE_SSL_CERT --alias __MACHINE_CERT --output /var/core/Machine_SSL.key
cd /storage/db/vpostgres_sslcp server.crt server.crt.bkpcp server.key server.key.bkpcp /var/core/Machine_SSL.crt /storage/db/vpostgres_ssl/server.crt
cp /var/core/Machine_SSL.key /storage/db/vpostgres_ssl/server.key
/storage/db/vpostgres_ssl/ location to have the required permissions:chmod 0600 server.crt server.keychown vpostgres:vpgmongrp server.crt server.key

service-control --stop --all && service-control --start --all