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:
Step 1: Validate the problematic certificate using Certificate Manager:
/usr/lib/vmware-vmca/bin/certificate-manager
Review the trusted root store and identify certificates not marked as CA: TRUE.
Step 2: Take a snapshot of vCenter before making any changes.
Step 3: Remove the invalid certificate using CLI:
List entries in TRUSTED_ROOTS/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS
Delete the problematic certificate/usr/lib/vmware-vmafd/bin/vecs-cli entry delete --store TRUSTED_ROOTS --alias <alias_name> -y
Confirm removal/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOT
Step 4: Re-run the vCenter upgrade pre-check script to confirm that the error is resolved.
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.