Trusted root certificates are not expired, and other services function without issues.
The report shows "EXPIRED" for the VMDir certificate during the "Checking Certificate Status" operation in vCert as shown below:
Checking Certificate Status------------------------------------------------------------------Checking VMDir certificate EXPIRED
Log entries in /var/log/vmware/vCert/vCert.log in vCenter Server confirm this expiration.
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
/usr/lib/vmware-vmdir/share/config/vmdircert.pem, remain on the system.Option 1: Backup and Remove the Stale Certificate File
cd /usr/lib/vmware-vmdir/share/config
cp vmdircert.pem vmdircert.pem.backup
rm vmdircert.pem
After removing the file, certificate expiration warnings for VMDir no longer appear in the vCert "Check current certificate status" report.
Option 2: Replace the VMdir Certificate with Machine SSL
Apply this alternative approach if file removal causes issues or if the 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.pem
rm /tmp/machine_ssl.pem
service-control --stop --all && service-control --start --all