Unable to delete CWS Certificates in NSX
search cancel

Unable to delete CWS Certificates in NSX

book

Article ID: 385891

calendar_today

Updated On:

Products

VMware NSX-T Data Center

Issue/Introduction

 
When encountering the following CWS certificates they will not have a node assigned to the certificate as seen below:

 

The certificate will show the following error when attempting to delete the certificate.
 
You see the following error:
 

 

 

Environment

  • VMware NSX

Cause

The issue that was preventing the deletion of these certificates can be shown from the screenshot below. 

Running API Command:  GET /api/v1/cluster/nodes/<certificate-id>

"protection": 'REQUIRE_OVERIDE' is preventing the certificated from being deleted from the UI.

 

Resolution

Using the command below to allow overwright and delete the CWS certificate below:

Log into NSX Manager and elevate to root.

curl -v -k -u admin -X DELETE -H 'X-Allow-Overwrite:true' 'https://localhost/api/v1/trust-management/certificates/<certificate-id>

Additional Information

If you are contacting Broadcom support about this issue, in order to aid a timely response and resolution, please provide the following:

  • Logs for the manager the certificate is attached, if the manager no longer exists, another manager from the cluster.
  • If known, type of Certificate, self signed, CA signed, PI certificate, service or platform certificate.
  • Error message observed, text and screenshot.
  • Results from the following API calls:
    • GET /api/v1/cluster/nodes/{node-id}
    • GET/api/v1/trust-management/certificates/{cert-id}

Handling Log Bundles for offline review with Broadcom support: