During the NSX Manager upgrade precheck, the validation fails due to a certificate parsing error. This occurs when the upgrade coordinator identifies a certificate with a structural format issue.
Symptoms
The following error appears in the NSX Manager UI or Upgrade Coordinator logs:
The certificate with id [ID] failed to parse with error: signed fields invalid. Please delete (if unused) or replace this certificate prior to upgrading.
VMware Cloud Foundation (VCF) 5.x
VMware NSX 4.1.x, 4.2.x
VMware Tanzu Kubernetes Grid Integrated (TKGI)
Newer NSX versions (starting with 4.2.x) utilize strict JVM parsing rules. This error occurs because the certificate pem_encoded field incorrectly includes the Private Key within the public certificate PEM block, which is a structural violation and security risk.
If the certificate is in use by a Principal Identity (PI), it cannot be deleted directly. Follow this "swap" procedure:
New-Cert-ID.GET https://<nsx-mgr-ip>/api/v1/trust-management/principal-identitiesX-NSX-Username: admin header): POST https://<nsx-mgr-ip>/api/v1/trust-management/principal-identities?action=update_certificate JSON Payload:{
"principal_identity_id": "<PI-ID>",
"certificate_id": "<New-Cert-ID>"
}