Vcenter getting certificate status alarm.
VMware vCenter Server 8.0.x
VMware vCenter Server 7.0.x
This alert occurs when there are expired certificates in the SMS store.
As per the output from :
Run the below commands to delete the expired SMS store certificates.
Command to check the Trusted root store
for i in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list); do echo STORE $i; /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $i --text | egrep "Alias|Not Before"; done;/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS --text | egrep 'Alias|Key Usage' -A 1 | grep -v "Entry type"
Backup:
/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store SMS --alias alias_name
Delete:
/usr/lib/vmware-vmafd/bin/vecs-cli entry delete --store SMS --alias alias_name -y
Run the below command to refresh
/usr/lib/vmware-vmafd/bin/vecs-cli force-refresh
Note : Need to keep valid vCenter snapshot before proceeding.
**Also the alias name can be in the following form of a link 'https://fqdn:9080/version.xml' instead of an alpha-numeric ID.