Go Daddy Wildcard Certificate with VI3
17 January 2008Let's say you already have a wildcard certificate in place on an IIS web server, and you'd like to use it in your VI3 environment.
First you'll need to export the cert from your IIS box, using the Certificates snap in.
Right click, then All Tasks, then Export, and Next on the first screen
Select "Yes, export the private key
"Personal Information Exchange - PKCS #12 (.PFX)" should be selected
And "Include all certificates in the certification path if possible" should be checked.
Enter your password here
Enter a filename for the exported cert. I called it wildcard.pfx
Now you'll need to use OpenSSL to convert the file you just generated.
I ran the openssl.exe from the path on my test system (C:\openssl\bin)
C:\openssl\bin\openssl.exe pkcs12 -in wildcard.pfx -out wildcard.txt -nodes. You will be asked for the password you entered when you were exporting the pfx.
Grab the portion with the following:
-----BEGIN RSA PRIVATE KEY-----
(Block of Random Text)
-----END RSA PRIVATE KEY-----
And save this (notepad is fine for this) as rui.key
-----BEGIN CERTIFICATE-----
(Block of Random Text)
-----END CERTIFICATE-----
And save this (notepad is fine for this) as rui.crt
Make sure you make a backup of the existing keys, in the case that something goes wrong with this process. They are located in the c:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\SSL folder.Now, rename the wildcard.pfx to rui.pfx. Copy rui.pfx, rui.crt, and rui.key files, to the above folder.
You'll then need to reinitialize the vpxd password. Run "vpxd.exe -p" again from a Dos box in the following folder:
c:\Program Files\VMware\Infrastructure\VirtualCenter Server
Then restart your VirtualCenter service.
You should then be able to log into your VirtualCenter server using a wildcard certificate.
Additionally, you can upload the rui.crt and rui.key files to your ESX host (using WinSCP) to the /etc/vmware/ssl/ path. Make sure you back these up too.
I then restarted my ESX 3.5 system, and it started to use the wildcard certificate as well.
As always, If you wish to use this method that I have seen success with, feel free to.
By using the methods I have described, you agree that I will not be held liable for any issues in your environment.
Enjoy.
Labels: VMware

