Replacing vCenter SSL Certificate with Certificate Issued by Microsoft Certificate Authority
Note: vCenter 5 introduced a new “Inventory” service that communicates over its own web services port and uses its own SSL certificate. vCenter 5 specific instructions will be noted below.
|
Step 1 |
To proceed with the below process you will need to install the latest version of OpenSSL on Windows/Linux or optionally you can leverage the OpenSSL install on a VMware Management Assistant (vMA) appliance. Tip: If you install OpenSSL on Windows you will need to set the environment variable OPENSSL_CONF to the directory where the default openssl.cfg file is located (this is typically c:\OpenSSL-Win32\bin\openssl.cfg). In the default scenario, at the command-prompt type set OPENSSL_CONF=c:\openssl-win32\bin\openssl.cfg You can confirm the environment variable is correct by simply typing set at the command prompt and looking for the OPENSSL_CONF line. |
|
Step 2 |
The very first item you will need to create is the replacement certificate Private Key. At a command-prompt type openssl genrsa 2048 > rui.key This will create a file within your current working directory called “rui.key”—this is your private key. |
|
Step 3 |
Using the private key you will need to create a Certificate Signing Request (CSR) used by your Certificate administrator (or alternately used by a public/commercial Certificate Authority) to issue the Public Key. At the command-prompt type openssl req –new –key rui.key > rui.csr You will be prompted for the following information:
This will create a file within your current working directory called rui.key—this is your Certificate Signing Request (CSR). |
|
Step 4 |
Using notepad or any file editor, open the file rui.csr you created in step 3 above. Copy the text starting with (including) —–BEGIN CERTIFICATE REQUEST—– and ending (including) —–END CERTIFICATE REQUEST—–.
|
|
Step 5 |
You are now going to create the replacement certificate Public Key using a Microsoft Certificate Authority.
You can open the rui.crt file within Windows and it should look similar to the following:
|
|
Step 6 |
Create a PFX (pkcs12) file containing the public and private key pairs.
|
|
Step 7 |
This step is for vCenter 5 only. Use the following steps to replace the certificate used by the vCenter 5 Inventory service. This process is simple because you can use the certificate generated using the steps above for the inventory service.
|
After following the above steps your vCenter server will now be using the new certificate for all web services. Additionally, you will no longer be presented with a certificate warning popup when using the vSphere Client if the certificate authority that issued the replacement certificate is trusted by your computer (in this specific case any domain joined computers will automatically trust all certificates issued by your internal enterprise Microsoft Certificate Authority).

