To resolve this issue, delete any corrupt files in
/etc/ssl/certs and remove all entries from the CRL store so that VMDIR push down fresh certificates to VECS. This in turn allows the VAPI service to start successfully.
Ensure you a have a valid backup or snapshot of the vCenter Server before proceeding.
Overview of Backup and Restore options in vCenter Server 6.x (2149237)A script has been written to automate this process.
- SSH to the vCenter Server Appliance.
- CD into /tmp.
- Create a file for the script. For example # vi crl-fix.sh
- Copy and paste the following into the file:
#!/bin/bash
cd /etc/ssl/certs
mkdir /tmp/pems
mkdir /tmp/OLD-CRLS-CAs
mv *.pem /tmp/pems && mv *.* /tmp/OLD-CRLS-CAs
h=$(/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOT_CRLS --text | grep Alias | cut -d : -f 2)
for hh in "echo "${h[@]}"";do echo "Y" | /usr/lib/vmware-vmafd/bin/vecs-cli entry delete --store TRUSTED_ROOT_CRLS --alias $hh;done
mv /tmp/pems/* .
for l in `ls *.pem`;do ln -s $l ${l/pem/0};done
service-control --stop vmafdd && service-control --start vmafdd
- Save the file and change the permissions before executing the script.
# chmod +x crl-fix.sh
- Run the script using following syntax.
# ./crl-fix.sh
- Reboot the vCenter Server Appliance.