While Configuring VMWare Cloud Foundation you might come across the below Error: “Error Connecting to ESXi host” “SSL Certificate common name doesn’t match ESXi FQDN”
Generally, this error is an outcome of the Host name not matching the Certificate which was created at the time of Installation of the ESXi Host.
This error can be corrected using the below Steps:
- Set the Hostname using the below Command:
[root@sddc-esxi4:~] esxcli system hostname set --fqdn=sddc-esxi4.vmlabs.com
- Once done you can now generate a New Certificate for the ESXi Host using the below command:
[root@sddc-esxi4:~] /sbin/generate-certificates
- Once done you can now restart the ESXi Host.
[root@sddc-esxi4:~] reboot