In VMware NSX, administrators may be unable to delete an expired or stale certificate even after a new certificate has been issued and assigned.
One or more relationships exist for object with id Certificate/[UUID] from LoadBalancerMonitor/[UUID].This issue is caused by a synchronization mismatch between the Policy API (UI intent) and the Management Plane (actual realization).
This is a known issue impacting VMware NSX. Subscribe to this KB article to be updated if a fix version becomes available.
To resolve the dependency and allow the deletion of the stale certificate, the new certificate must be re-imported with the correct chain order.
Correct the Certificate Chain: Ensure the new certificate PEM bundle is ordered as: Leaf Certificate > Intermediate Certificate(s) > Root Certificate.
Re-upload the Corrected Certificate: In the NSX UI, navigate to System > Certificates and re-import or update the certificate entry with the corrected PEM bundle.
Re-apply to the Load Balancer Monitor: Navigate to the Load Balancer Monitor settings and re-select the corrected certificate. Save the changes to trigger a new reconciliation cycle.
Delete the Stale Certificate: Once the Management Plane successfully realizes the new certificate, the internal reference to the old certificate is removed. You can now delete the expired/old certificate from the UI.
You can verify the PEM order using OpenSSL before uploading: Review this command before running it:
openssl crl2pkcs7 -nocrl -certfile <cert_bundle.pem> | openssl pkcs7 -print_certs -noout