Last week I was contacted by a client whose vCenter Server certificates were about to expire in just a few days. The renewal process was straightforward — all certificates were successfully updated, and the certificate expiration alarm in vCenter was reseted to green.
However, only a couple of days later, the same “Certificate about to expire” alarm reappeared. This was unexpected, since every certificate on the vCenter Server was valid and none were close to expiration or within the threshold to show an alarm.
After some investigation, I discovered a VMware KB article explaining that this issue can occur when old certificates remain stored in what’s called “backup store.” Even though new certificates are active and valid, the system continues to reference the backup ones, causing the alarm to trigger incorrectly.
After identifying that the issue was caused by certificates still stored in the backup store, I needed a way to verify which certificate stores still contained the outdated entries.
VMware provides a built-in command that can be used directly from the vCenter appliance to list all certificate stores and display their expiration dates. Running the following command helped me confirm where the old backup certificates were still present: 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 After"; done
These entries were found by the above command:
STORE BACKUP_STORE
Alias : bkp___MACHINE_CERT
Not After : Aug 27 16:07:08 2024 GMT
Alias : bkp_machine
Not After : Aug 27 16:08:45 2024 GMT
Alias : bkp_vsphere-webclient
Not After : Aug 27 16:08:46 2024 GMT
Alias : bkp_vpxd
Not After : Aug 27 16:08:47 2024 GMT
Alias : bkp_vpxd-extension
Not After : Aug 27 16:08:48 2024 GMT
After identifying that the issue was caused by certificates still stored in backup mode, the next step was to clean them up.
VMware provides a built-in script that safely removes these backup certificate entries from the vCenter appliance.
From an SSH session to the vCenter Server Appliance, I navigated to the temporary directory and executed the cleanup script using the following commands:
cd /tmp
lsvi clean_backup_stores.sh
chmod +x clean_backup_stores.sh
./clean_backup_stores.sh
These commands simply verify the script’s presence, make it executable, and then run it. The script itself is part of VMware’s official guidance and is used to automatically remove old or unused certificates that remain in backup mode after renewal.
When the VMware cleanup script is executed, it first scans all certificate stores within the vCenter environment and displays their current status.
During this process, the script outputs each store name and checks if any expired or expiring certificates exist within the backup_stores.
You’ll see a message similar to:
If there is any expired or expiring Certificates within the BACKUP_STORES please continue to run this script.
Before making any changes, the script includes a safety confirmation to ensure you have proper backups or snapshots of your environment. It will prompt you with the following question:
Have you taken powered off snapshots of all PSC’s and VCSA’s within the SSO domain (Y|y|N|n)?
After confirming with Y (yes), the script proceeds to remove the outdated certificates from all relevant backup stores.
Once the process completes, it displays a success message:
The Certificate BACKUP_STORES were successfully cleaned.
At this stage, you can return to the vCenter interface and verify that all certificate-related alarms have cleared. If any still appear, simply acknowledge them and reset their status to green.
As a final step, VMware recommends restarting all services on your Platform Services Controllers (PSCs) and vCenter Server Appliances (VCSA) within the SSO domain to ensure that the updated certificate information is fully applied.
You can do this with the following command:
service-control --stop --all && service-control --start --all
(This step is optional but highly recommended to complete the cleanup process.)
After restarting the services, your environment should show a healthy status, with no certificate-related warnings and all components synchronized with the current, valid certificates.
This was a good reminder that even after renewing vCenter certificates, it’s worth checking for any backup or legacy entries that could trigger false-positive alarms in the future.

