Regenerate VMware ESX Server 2.x SSL Certificate
Posted on 30. Nov, 2005 in VMware
If you have changed the name of your ESX Server, you will probably notice the SSL certificate is no longer valid. Here is a little script I have picked up over the last few years that easily allows you to regenerate a valid certificate. Credit for acquiring the script goes out to Anders.
Download the script here, then follow the steps below.
1. Copy the tarball to your ESX server and untar:
tar xvzf regen_cert.tgz
2. Verify the MD5 checksum.
md5sum -c md5sum
3. Make a backup of the original certificate by renaming the SSL directory.
mv /etc/vmware-mui/ssl /etc/vmware-mui/ssl-old
4. Run the Perl script.
perl regen_cert.pl localhost root <root’s password>
5. Verify the new certificate was generated.
check that the directory /etc/vmware-mui/ssl was recreated.
6. Restart the Apache Server.
/etc/rc.d/init.d/httpd.vmware restart
7. Verify everything worked okay.
If no problems are found, you can now delete /etc/vmware-mui/ssl-old
