Problem Description
When trying to add a vCenter account to the Broker, the following error is displayed.
Error: Credential test failed for account <xxx>: SSL handshake failed,
possible due to an invalid or untrusted certificate.
An example of the full error is shown below.
Cause
The Broker validates the vCenter server's certificate to ensure secure communications between the two systems. The certificate or a certificate in the certificate chain isn't valid.
This issue is common when using a self-signed certificate for example in on-premises vCenter servers.
Resolution
Export all certificates in the certificate chain, including CA and intermediary CA certificates and import them into the Broker so that the chain can be trusted.
Refer to the article Configuring HTTPS Certificates for steps to import the required certificate.