When you use the vCert tool to reset or regenerate vCenter Server certificates, the newly created certificates retain the same expiration date as the original certificates. This occurs when the VMCA (VMware Certificate Authority) root certificate is nearing expiration. Because subordinate certificates cannot have a validity period exceeding their signing CA, all regenerated Machine SSL, solution user, STS, and data-encipherment certificates inherit the limited validity from the expiring VMCA root. The vCert tool completes without errors, but certificate expiration alarms persist and the environment remains at risk of certificate-related outages.
Additional symptoms reported:
Note: This issue does not apply to environments using custom third-party CA-signed certificates.
vCenter Server uses the VMware Certificate Authority (VMCA) as an internal certificate authority to sign all subordinate certificates, including Machine SSL, solution user, STS, and data-encipherment certificates. A fundamental constraint of certificate chains is that subordinate certificates cannot have a validity period that exceeds their signing CA certificate.
When you run vCert option 6 ("Reset all certificates with VMCA-signed certificates"), the tool regenerates the subordinate certificates but does not renew the VMCA root certificate itself. If the VMCA root certificate is nearing expiration, the newly generated subordinate certificates are signed with the existing VMCA root and inherit its limited remaining validity period.
This results in new certificates that expire on the same date as the original certificates, and the certificate expiration alarms persist.
Before proceeding: Take a powered-off snapshot of the vCenter Server virtual machine. If the vCenter Server is in Enhanced Linked Mode, snapshot all linked vCenter Server VMs simultaneously.
Connect to the vCenter Server Appliance via SSH as root.
Install and launch the vCert tool per vCert - Scripted vCenter expired certificate replacement
Select option 3 (Manage Certificates) from the main menu.
Select option 9 (VMCA certificate) to renew the VMCA root certificate first.
Return to the Manage Certificates menu and select option 2 to regenerate the Machine SSL and all solution user certificates.
When prompted, select the option to update the STS signing certificate.
Restart all vCenter services when prompted, or manually restart using:
service-control --stop --all && service-control --start --all
Verify the certificates now have extended expiration dates:
for store in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list | grep -v TRUSTED_ROOT_CRLS); do echo "[*] Store :" $store; /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $store --text | grep -ie "Alias" -ie "Not After";done;
Refresh ESXi host certificates:
Re-authenticate any third-party systems connected to vCenter Server (backup solutions, NSX Manager, monitoring tools) to accept the new certificates.