I replaced the expired CCP Corfu certificate in NSX by generating a self-signed certificate in the UI and sending the replacement through the API.

In my case the CCP Corfu certificate has already expired

CCP-Corfu Client certificate expired on July 18, 2022.

Generating a Self-Signed Certificate

In the top menu bar I went to Generate -> Generate Self Signed Certificate

Self-signed certificate creation wizard for CCP Corfu client.

Next I had to grab the new certificate ID

CCP-Corfu Client certificate ID: 7502886f-7950-434a-8af3-dab9779c3e71

Preparing the Trust-Management API Call

The next step is to replace the old certificate with the new certificate via an API call. For this I used Postman but any other tool could potentially be used.

The URL for the post call would go against https://nsx-vip-01a.corp.local/api/v1/trust-management/certificates/cert_id?action=apply_certificate&service_type=CBM_CCP&node_id=node_id

The node ID can be found under Appliances -> View details on node, the value to the right for UUID ex

Appliance details show version, deployment type, transport nodes, UUID, and cert thumbprint.

For authentication I used basic, per best practices we should be using a token.

For headers had to add Content-Type application\json ex

Headers section with Content-Type set to application/json for API request.

Sending the Apply Certificate Request

In the body I picked raw and added the following in

{ "cert_id": "5a6f1a51-95ec-45f3-8b7a-92ac2abd75cb",

"service_type": "CBM_CCP" }

The cert ID is from the certificate I generated earlier. ex

Postman request body with JSON fields for cert ID and service type.

Once I clicked send I was presented back with a 200 OK

API response shows 200 OK status with 527 B size in NSX documentation.

Verifying the New Certificate

Going in the web browser I can also see that the new certificate is now used and the old one doesn’t have anything assigned to it ex

CCP-Corfu certificates, one expired, one valid.

Deleting the Old Certificate

The final step I did was removing the old certificate by clicking on the 3 dots to left and picking delete from the menu

Certificate management with expired warning, CCP-Corfu certificate, and delete/export options.

If the delete fails with a “Certificate cannot be deleted because it is used by 1 MP node” error, I covered the fix in this post.