Certificate differs from the expected one.
Error occurs during New cloud pairing:
Generic error during the SSL handshake
2020-03-10 17:58:58.488 DEBUG - [UI-1xxxxxx7-0x0c-4xx5-axxc-axxxxxxxxxd-A9] [job-7] com.vmware.h4.jobengine.JobExecution : Task 2xxxxx1-3xxf-4xx0-axx3-bxxxxxxxxxx (WorkflowInfo{type='pair', resourceType='site', resourceId='Site2', isPrivate=false, resourceName=''}) completed with result VcloudSiteInfo{isLocal=false, state=PeerState{incomingCommError=null, outgoingCommError=ApiError{code='CertificateMismatch', msg='Certificate differs from the expected one.', args=[], stacktrace='com.vmware.exception.CertificateMismatchException: Certificate seen on the network differs from the certificate we expected
at com.vmware.exception.converter.ClientExceptionConverter.convertException(ClientExceptionConverter.java:62)
at com.vmware.rest.client.AbstractRestClient.genericExchange(AbstractRestClient.java:151)
at com.vmware.rest.client.json.RestClient.exchange(RestClient.java:97)
...
Caused by: java.security.cert.CertificateException: Certificate seen on the network differs from the certificate we expected
at com.vmware.rest.client.security.ShaTrustManager.checkServerTrusted(ShaTrustManager.java:53)
at java.base/sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:1510)
at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:629)
... 46 more
'}}, apiPublicUrl='https://vcav-site_fqdn_or_IP', apiVersion='null', site='Site2', description='', apiUrl='https://vcav-site.corp.org', apiThumbprint='SHA-256:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA'}
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
VMware vCloud Availability 4.x.x
To resolve this issue, ensure that the public API endpoint in each site explicitly states the port to be used and when pairing sites, the endpoint URL includes the port information.
Note: