cd /etc/vmware/ssl
mv rui.crt orig.rui.crt
mv rui.key orig.rui.key
2. Copy the new certificates to
/etc/vmware/ssl
e.g. using WinSCP
3. Rename the new certificates to rui.crt and rui.key
4. Restart the host
If the certificates are already on the ESXi host and you're logged in via SSH:
1. Export the private key from the .p12 / .pfx file:
openssl pkcs12 -in server.pfx -nocerts -out key.pem
2. Remove the password from the private key and save as server.key (prevents Apache from prompting for the password on every restart):
openssl rsa -in key.pem -out server.key
3. Export the server certificate:
openssl pkcs12 -in server.pfx -clcerts -nokeys -out server.crt
✅ SSL certificate successfully updated!
H@ppy H@cking! 🔐⚡