--> PeerThumbprint: <Destination vCenter machine ssl thumbprint>
--> ExpectedThumbprint:
--> ExpectedPeerName: <Destination vCenter IP>
--> The remote host certificate has these problems:
-->
--> * unable to get local issuer certificate)
VMware vSphere 8.x
This issue occurs because the root certificate of the issuing authority (Issuer / CA) that issued the Machine SSL Certificate of the destination vCenter Server does not exist in the Trusted Roots of the source vCenter Server.
During the certificate chain verification, the issuer's (local issuer) certificate cannot be traced, resulting in a failure to verify its authenticity.
To resolve this issue, identify and export the CA certificate of the Issuer on the destination vCenter Server, and then import it into the Trusted Roots of the source vCenter Server.
Perform the following steps:
Step 1: Identify the Issuer on the destination vCenter Server
/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store MACHINE_SSL_CERT --text
Verify that the Issuer is a different CA, not the destination vCenter itself.
Example: (If sddc01.xxxx.xxx is the CA)
Issuer: C=US, ST=California, L=Palo Alto, O=sddc01.xxxx.xxx, OU=VMware Engineering, CN=sddc01.xxxx.xxx
Step 2: Export the certificates from the destination vCenter Server
/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store MACHINE_SSL_CERT --alias __MACHINE_CERT > machine-ssl-cert.crt
/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS --text
*Note: Depending on the environment, there may be multiple root certificate
/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store TRUSTED_ROOTS --alias xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > trusted-root-cert-1.crt
/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store TRUSTED_ROOTS --alias yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy > trusted-root-cert-2.crt
Step 3: Transfer files to the source vCenter Server and verify
openssl verify -CAfile trusted-root-cert-1.crt machine-ssl-cert.crt
openssl verify -CAfile trusted-root-cert-2.crt machine-ssl-cert.crt
:
Step 4: Import the certificate into the source vCenter Server and verify
/usr/lib/vmware-vmafd/bin/dir-cli trustedcert publish --cert <Certificate_file_name_that_returned_OK> --login '[email protected]' --password '<administrator_password>'