An SSL error will be presented in the vCenter Server UI when attempting to reconnect an ESX host after a rebuilding the host.
vCenter Server 8.0
ESX 8.0
This issue is due to an incorrect SAN hostname within the current ESX certificate.
1. Validate the ESX hostname
# hostnameesx1.fake.domain
2. Backup the current rui.crt and rui.key files for the ESX host. They are located in the "/etc/vmware/ssl" folder. Adjust the name of the datastore and folder in the command below accordingly:
cp /etc/vmware/ssl/rui.* /vmfs/volumes/datastore-name/backup-folder
3. Re-create the local host certificates using the following command:
# /sbin/generate-certificates
4. Reboot the host.
# reboot
Upon reboot, the host certificate should now reflect the ESX FQDN in the SAN
5. From the vCenter UI, attempt to reconnect the ESX host