The purpose of this article is to provide awareness of a known issue with NSX-V 6.4.8 and 6.4.10.
Symptoms:
VMware NSX for vSphere
Value changed by user for CA certificate / CRL grid does not returned back to parent component and hence was not sent in the API call, called by UI.
This issue is fixed in VMware NSX Data Center for vSphere 6.4.11 version.
Workaround:
Use the REST API for replacing the CA certificate
Note: Replace "NSX-IP", "edge-id", "applicationProfile-id" according to customer setup for below REST APIs.
1. GET https://NSX-IP/api/4.0/edges/edge-id/loadbalancer/config/applicationprofiles
This will list all the Application Profiles and Certs being used.
Once you get the applicationProfileId, run the below API to get the details for the required Application Profile.
GET https://NSX-IP/api/4.0/edges/edge-id/loadbalancer/config/applicationprofiles/applicationProfile-id
Copy the complete xml output and save it.
CA sample:
<clientSsl>
<ciphers>DEFAULT</ciphers>
<clientAuth>ignore</clientAuth>
<serviceCertificate>certificate-xxx</serviceCertificate>
<caCertificate>certificate-yyy</caCertificate> <----- current CA cert that needs to be changed or replaced
</clientSsl>
2. Identify the correct certificate-id that you want to update. If you are not aware of the certs, below is the API to list all the certificate details.
GET https://NSX-IP/api/2.0/services/truststore/certificate/scope/edge-id
GET https://NSX-IP/api/2.0/services/truststore/certificate/certificate-id
3. Edit the xml output that you have copied in Step 1 . Make the changes with the correct certificate-id for the CA certs and saved it again.
CA sample:
<clientSsl>
<ciphers>DEFAULT</ciphers>
<clientAuth>ignore</clientAuth>
<serviceCertificate>certificate-xxx</serviceCertificate>
<caCertificate>certificate-zzz</caCertificate> <-- replacing with the correct cert
</clientSsl>
4. Execute the below API using the xml body that you have modified/saved in Step 3.
PUT https://NSX-IP/api/4.0/edges/edge-id/loadbalancer/config/applicationprofiles/applicationProfile-id