We were doing the ESX Host (5.1 ) migration from the old windows VC5.1 to the new VC6.0 appliance , few hosts were having issue while adding it to the new VC and it got failed with the Time-out Error and not registered in to the cluster.
After adding the ESX host , it will ask to accept the certificate and once we click “yes” it was taking too much time to go the next option and it got failed with the Time-out error .We tried using the IP but that also had similar issue.
So we login to the SSH and restarted all the management services ( services.sh restart ) but that also didnt help and we were suspecting the issue might be because of the certificate from the ESX host and decided to regenerate the esx host certificate again.
Steps followed to regenerate the ESX host certificate.
Log in to the ESXi Shell and acquire root privileges.
In the directory /etc/vmware/ssl, back up any existing certificates by renaming them using the following commands.
mv rui.crt orig.rui.crt
mv rui.key orig.rui.key
Note
If you are regenerating certificates because you have deleted them, this step is unnecessary.
Run the command /sbin/generate-certificates to generate new certificates.
Run the command /etc/init.d/hostd restart to restart the hostd process.
Confirm that the host successfully generated new certificates by using the following command and comparing the time stamps of the new certificate files with orig.rui.crt and orig.rui.key.
ls -la
Once certificate is regenerated , we restarted the management service again using services.sh restart and added the ESX host successfully without any issue.
Reference :