RCA
Upgrading from NSX-T 2.3 to v2.4.1 or v2.4.2 introduces architecture of 3-node NSX Management Cluster behind a VIP. You have finished
creating the VIP but NSX Manager creates a self-signed API certificate with its hostname as the subject and issuer, by default. That was the one shown via:
openssl s_client -connect <NSX-MANAGER-FQDN>:443 -showcerts
Solution
1. Identify the NSX CA Cert you had already been using for BOSH.
2. From
Ops Manager UI -> vCenter Config tab -> NSX CA Cert3. Copy the entire NSX CA Cert from above into a text:
bosh_nsx_ca.cert
4. Use the
openssl
cli tool to identify certificate details for locating the correct certificate UUID from NSX Manager:
openssl x509 -in bosh_nsx_ca.cert -noout -serial -subject -issuer
Example output:
serial=<Your Cert Serial Number>
subject= /C=US/ST=California/L=CA/O=NSX/CN=<YOUR-CN-ISSUED-TO>
issuer= /C=US/ST=California/L=CA/O=NSX/CN=<YOUR-CN-ISSUED-BY>
5. Login to your NSX Manager UI with your admin credentials.
6. Select the "
System" tab.
7. Select "
Certificates" from sidebar
8. Locate the Certificate with the "
Issued To
" column showing your
<YOUR-CN-ISSUED-TO>
from above
"
Issued By
" column showing your
<YOUR-CN-ISSUED-BY>
from above
9. Confirm the serial number matches by clicking the Certificate.
10. Copy the ID for that Certificate to use below.
11. Identify the VIP used by your NSX Management Cluster:
- Login to your NSX Manager UI with your admin credentials
- Select "System" tab
- Copy the VIP address from the "Virtual IP"
12. Then register the original self-signed cert to the cluster certificate API with the IP of the VIP as shown below:
export NSX_MANAGER_IP_ADDRESS=<NSX Manager VIP address>
export CERTIFICATE_ID="Certificate UUID retrieved above"
export NSX_PASSWORD="your nsx manager password"
curl --insecure -u admin:$NSX_PASSWORD -X POST "https://$NSX_MANAGER_IP_ADDRESS/api/v1/cluster/api-certificate?action=set_cluster_certificate&certificate_id=$CERTIFICATE_ID"
For additional details on NSX Manager Certificate Authority certificate for 2.4.1 and later, refer to:
https://docs.pivotal.io/pks/1-5/nsxt-generate-ca-cert.html