- Replace the expired NSX certificates using the API calls if CARR script is not applicable (in case of CA certificates)
VMware NSX
Option 1:
(works only for Self Signed certificates)
Use CARR script to replace the certificates, please refer to Using Certificate Analyzer, Results and Recovery (CARR) Script to fix certificate related issues in NSX
Option 2:
(works for both CA certificates or Self Signed certificates)
Using this document, create the self signed cert: Create a Self Signed Certificate
Use this KB (Obtaining and Importing the CA signed certificate) the and reference document for CA certificate: Import the CA Signed Certificate
GET https://<nsx-mgr>/api/v1/trust-management/certificates/<cert-id>?action=validate
POST /api/v1/trust-management/certificates/<cert-id>?action=apply_certificate&service_type=API&node_id=<node-id>
POST /api/v1/trust-management/certificates/<cert-id>?action=apply_certificate&service_type=MGMT_CLUSTER
Reference Doc: Replace Certificates through API