Trusted roots are not expired, and there are no issues with other services.
When running option 1, “Check current certificate status,” in the vCert tool, the “Checking VMdir certificate” item is shown as expired.
Checking Certificate Status
-----------------------------------------------------------------
Checking VMDir certificate EXPIRED
The following log entry was found in the vCert.log file.
YYYY-MM-DDTHH:MM:SS - [operation.check_certificate - check_file_system_certificate] - INFO - Checking certificate at /usr/lib/vmware-vmdir/share/config/vmdircert.pem
YYYY-MM-DDTHH:MM:SS - [operation.check_certificate - check_certificate_basic] - WARNING - Certificate is expired
vCenter Server 7.0.x
vCenter Server 8.0.x
Workaround 1:
Step 1: Backup and Remove the Stale Certificate File
cd /usr/lib/vmware-vmdir/share/config
cp vmdircert.pem vmdircert.pem.backup
rm vmdircert.pem
Step 2: Verify Resolution
After removing the file, certificate expiration warnings for vmdir should no longer appear in:
Workaround 2:
Alternative Approach (If File Removal Causes Issues or If vmdircert.pem file is Missing)
/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store MACHINE_SSL_CERT --alias __MACHINE_CERT > /tmp/machine_ssl.pem
cp /tmp/machine_ssl.pem /usr/lib/vmware-vmdir/share/config/vmdircert.pemrm /tmp/machine_ssl.pemAfter applying the above workaround , restart vCenter services using the command (service-control --stop --all && service-control --start --all), then re-run vdt script vCert - Scripted vCenter Expired Certificate Replacement .
vCert - Option 1 - "Checking VMDir certificate" will no longer be showing in the "Checking Certificate Status" field