A new NSX-T Manager Certificate has been deployed to replace the existing one which has expired. The new NSX-T certificate is not in use, as the old is still ‘used’ and can not be deleted.
Attempting to delete old certificate results in the error message
Error: Certificate cannot be deleted because it is used by 4 MP node(s). (Error code: 2022)
3.2.2
As the old certificates are still assigned with NSX managers it will not be allowed to delete. The old NSX manager certificates must be replaced with new certificates before deleting old certificates from NSX managers
Procedure to replace old certs with new certs via API is as below
POST /api/v1/trust-management/certificates/<cert-id>?action=apply_certificate&service_type=API&node_id=<node-id>
Repeat the above API for all 3 NSX managers by replacing the node-id with UUID of NSX managers
POST /api/v1/trust-management/certificates/<cert-id>?action=apply_certificate&service_type=MGMT_CLUSTER
Node-id -- UUID of NSX managers
Cert-id -- UUID of New certificates imported to NSX manager.
Refer Replace Certificates