VCF on VxRail: Replace NSX-T Local-Manager Certificate in VCF Environment
Summary:This article is a guide to replacing the NSX-T Local-Manager self-signed certificate in VCF managed federation environments. Ensure that your system remains secure and compliant.
Please select a product to check article relevancy
This article applies to This article does not apply toThis article is not tied to any specific product.Not all product versions are identified in this article.
Note: Only follow this article for VCF managed NSX-T federation environments!
Background:
There are different types of NSX-T certificates as described below:
Certificate Name
Purpose
Replaceable
Default Validity
Tomcat
This is an API certificate used for external communication with individual NSX Manager nodes through UI or API.
Yes
825 days
mp-cluster
This is an API certificate used for external communication with the NSX Manager cluster using the cluster VIP, through UI or API.
Yes
825 days
LocalManager
This is a platform Principal Identity certificate for the Federation. If you are not using Federation, this certificate is not used.
Yes
825 days
For VCF solutions:
The Tomcat and mp-cluster are replaced with CA certificates signed by VMCA from vCenter. The mp-cluster and Tomcat certificates may still be there but they are not being used.
NSX-T Manager with VCF:
Tomcat - Node1 > not being used
mp-cluster - VIP > not being used
Replaced during installation with the below:
CA - Node1
CA - VIP
If you want to check if the certificate is being used, run the following API on the Postman platform:
GET https://<nsx-mgr>/api/v1/trust-management/certificates/<certificate-id>
Local-manager certificate is the Principal Identity certificate used to communicate with other sites in the Federation.
An NSX-T Federation environment contains an active and a standby Global Manager cluster and one or more Local Manager clusters.
Figure 1: Shows three locations with active and standby Global Manager clusters in Locations 1 and 2 with Local Manager clusters in all three locations.
How to ascertain the number of Local Manager Clusters:
To check the environment and find out how many Local Manager Clusters there are, follow the below steps and screenshot:
From System > Configuration > Location Manager:
At the top of the Local Manager, it shows you which cluster you are logged in on. In this example, we are logged in to a Local Manager Cluster.
In the middle of the page, it shows the Global Manager Clusters, and which cluster is Active, and which is Standby.
Other Local Manager Clusters are seen at the bottom under Remote Sites.
Figure 2: Local Manager Cluster Environment
Procedure to replace local-manager self-signed certificates:
Log in to NSX Manager in the Local Manager Cluster.
Collect an NSX-T backup before proceeding. This step is important!
System > Lifecycle Management > Backup and Restore > Start Backup
Figure 3: Collect NSX-T Backup.
Check the certificates and expiry date.
Click System > Settings > Certificates
The example below shows in red the expiring date of local-manager certificates:
Figure 4: Expiring Date of Local-Manager Certificates
There is one certificate per Local Manager cluster regardless of the number of NSX Managers there are within the cluster.
Log in to any NSX Manager on Local Manager cluster 1.
The rest is user business and location details (This can be copied from an old expiring certificate.)
Click Save.
Figure 6: Enter CSR Names and Locality Information.
Create a Self-Signed Certificate using the Generated CSR.
Click the New CSR check box > Generate CSR > Self-Sign Certificate for CSR.
Figure 7: Create a Self-Signed Certificate.
Ensure that the Service Certificate is set to No and click Save.
Return to the Certificates tab, locate the New Certificate and Copy Certificate ID.
Figure 8: Copy New Certificate ID
Replace the Principal Identity certificate for the Local Manager.
User to install the Postman platform.
In the Authorization tab, select Type > Basic Auth.
Enter NSX-T Manager login details.
Figure 9: Enter NSX-T Manager Login Details.
In the Headers tab, change "application/xml" to "application/json."
Figure 10: In Postman, change "application/xml" to "application/json"
In the Body tab, select the POST APIcommand.
Select Raw and then select JSON.
In the box beside POST, enter URLhttps://<nsx-mgr-IP-local-manager-clusterX>/api/v1/trust-management/certificates?action=set_pi_certificate_for_federation
In the above, the URL is the IP used for any NSX manager within a specific Local Manager Cluster.
In the body section, enter the below in two lines as seen in the screenshot:
Figure 11: Enter URL for Any NSX Manager Within a Specific Local Manager Cluster.
Click Send and ensure that you see the result 200 OK.
Repeat Steps 1 through 4 on each Local Manager Cluster 2 and 3.
Once these steps are complete, you have created one new certificate on each Local Manager Cluster and replaced the Principal Identity Certificate on each Local Manager Cluster.
It is now time to delete the old expiring certificates from each of the three Local Manager Clusters.
Check that the certificate is no longer in use.
Copy Certificate ID
Open Postman
Select GET API instead of POST.
Enter URL https://<nsx-mgr-IP-local-manager-clusterX>/api/v1/trust-management/certificates/<certificate-id>
Look for "used_by" and confirm it has empty brackets.
Go to System > Settings > Certificates and select the required certificate.
Figure 12: Select the Required Certificate.
Click Delete > Delete.
Figure 13: Delete Certificate.
Confirm that Principal Identity is working and using the new certificates:
Open Postman
Select GET.
Run URL https://<nsx-mgr-IP-local-manager-clusterX>/api/v1/trust-management/principal-identitie.
Output should be similar to the below, "certificate_id" should show the newly created certificate ID.
Figure 14: Certificate ID Shows the New Certificate ID.
Additional Information
Replacing Global-manager certificates:
To replace the Global Manager Certificate, follow the same process but change "LOCAL_MANAGER" to "GLOBAL_MANAGER" and perform the procedure from the Global Manager Cluster.
Other related articles:
See these related Broadcom VMware articles for more information: