During a vCenter upgrade pre-check, the following error may occur:
This occurs when a certificate in the vCenter TRUSTED_ROOTS store is incorrectly marked as a Certificate Authority (CA) but is actually a leaf (end-entity) certificate. Such certificates cause the upgrade pre-check to fail.
VMware vCenter Server
The vCenter certificate store contained a certificate incorrectly marked as a Certificate Authority (CA), but it was actually a leaf certificate.
Certificate Example From VDT Script:
If you are not using the vCert tool, steps using the vecs-cli can be found below:
/usr/lib/vmware-vmca/bin/certificate-manager
Review the trusted root store and identify certificates not marked as CA: TRUE.
/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS
/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store TRUSTED_ROOTS --alias <alias-id> --output /root/<aliasID>.cer
/usr/lib/vmware-vmafd/bin/dir-cli trustedcert unpublish --cert /root/<alias-id>.cer
/usr/lib/vmware-vmafd/bin/vecs-cli entry delete --store TRUSTED_ROOTS --alias <alias-id>
/usr/lib/vmware-vmafd/bin/vecs-cli force-refresh
service-control --stop --all && service-control --start --all
VMware KB: 2146011 – Certificate Authority Parameter Check (LEAF!) Error
Always take a snapshot and backup before modifying certificates in vCenter.
CLI commands should be executed carefully, as improper removal may impact vCenter services.