vCenter certificate validation
The process below forces the plugin to verify the server certificate. To verify the certificate, it must either be signed by a well-known public Certificate Authority, or the server certificate to trust must be provided in the configuration.
-
To configure the certificate verification, you must obtain the certificate of
the vCenter server in PEM format. To obtain the certificate, do either of the
following:
- Use your browser to export the certificate to the PEM format and store
it on your local system.
You can do this by opening the vCenter UI and use the standard browser capabilities to view the certificate details and export the certificate. The exact procedure depends on which browser you use and can be found in the documentation for browser.
- Use the vCenter API to fetch the TLS details of the server and use the
"cert" field of the output.
For more details about the API, check the documentation for the vCenter Server version. For example, for version v7.0u3, see https://developer.vmware.com/apis/vsphere-automation/v7.0U3/vcenter/api/vcenter/certificate-management/vcenter/tls/get/
- Use your browser to export the certificate to the PEM format and store
it on your local system.
-
Update the Connect Deployment configuration for the vCenter and update the
following two settings:
- Tls Verify: set this field to "true".
- Certificate: provide the certificate PEM content here, starting with the
-----BEGIN CERTIFICATE-----
and ending with the-----END CERTIFICATE-----
text