Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Configuring CA signed SSL certificates for the vSphere Web Client and Log Browser in vCenter Server 5.1 (2035010)
Purpose
In the case that you are unable to use the tool this article helps you eliminate common causes for problems during certificate implementation, including configuration steps and details, and helps avoid common misconfigurations in the implementation of custom certificates in your environment.
Note: This article is specifically for vSphere 5.1. If you are using vSphere 5.0, see Implementing CA signed SSL certificates with vSphere 5.0 (2015383).
Note: This article is specifically for vSphere 5.1. If you are using vSphere 5.0, see Implementing CA signed SSL certificates with vSphere 5.0 (2015383).
Resolution
Creating CA assigned certificates for vSphere is a complex task. In many organizations it is required to maintain proper security for regulatory requirements. There are several different work flows required for successful implementation:
- Creating the certificate request
- Getting the certificate
- Installation and configuration of the certificate in the vSphere Web Client and the Log Browser
- You have a vSphere 5.1 environment
- All certificates and corresponding files are already generated, as per Implementing CA signed SSL certificates with vSphere 5.1 (2034833).
Installing and configuring the certificate for the vSphere Web Client and the Log Browser
After the certificate has been created, follow these steps to complete the installation and configuration of the certificate for the Web Client:
- Log into the vSphere Web Client server as an administrator.
- If you have not already imported it, double click on the
C:\certs\Root64.cerfile and import the certificate into theTrusted Root Certificate Authorities > Local ComputerWindows certificate store. This ensures that the certificate server is trusted. - Stop the VMware vSphere Web Client service from the service control manager (
services.msc). - Stop the VMware Log Browser Service from service control manager (
services.msc). - Back up the current certificates (
rui.crt,rui.key,rui.pfx) for the vSphere Web Client. By default, the certificates are located in:
Windows 2008:C:\ProgramData\VMware\vSphere Web Client\ssl\
Windows 2003:C:\Documents and Settings\All Users\Application Data\VMware\vSphere Web Client\ssl
- Copy the new certificate files to this directory. If you are following this resolution path, the certificates are located in
C:\certs\WebClient. - Back up the current certificates for the Log Browser. By default, the certificates are located in:
C:\Program Files\VMware\Infrastructure\vSphereWebClient\logbrowser\conf
- Copy the new certificate files (
rui.crt,rui.key,rui.pfx) to this directory. If you are following this resolution path, the certificates are located inC:\certs\logbrowser. - From the command prompt, run:
set JAVA_HOME=c:\Program Files\VMware\Infrastructure\JRE
- Navigate to the
SsoRegTooldirectory. The default location for this directory is:C:\Program Files\VMware\Infrastructure\vSphereWebClient\SsoRegTool\
- Unregister the vSphere Web Client Service from SSO by running the command:
Note: TheunregisterServicecommand from within theregTool.cmdfile is case sensitive.regTool.cmd unregisterService -si "Installation_Directory\vSphereWebClient\serviceId" -d https://SSOServer.domain.com:7444/lookupservice/sdk -u admin@System-Domain -p password
Where:Installation_Directoryby default isC:\Program Files\VMware\Infrastructurepasswordis theadmin@system-domainpassword
If the command is successful, the output appears similar to:
- Register the VMware vSphere Web Client back to vCenter Single Sign On:
Note: TheregisterServicecommand from within theregTool.cmdfile is case sensitive.
- On Windows 2008, run the command:
regTool.cmd registerService --cert "C:\ProgramData\VMware\vSphere Web Client\ssl" --ls-url https://SSOServer.domain.com:7444/lookupservice/sdk --username admin@System-Domain --password password --dir "Installation_Directory\vSphereWebClient\SsoRegTool\sso_conf" --ip "*.*" --serviceId-file "Installation_Directory\vSphereWebClient\serviceId"
- On Windows 2003, run the command:
regTool.cmd registerService --cert "C:\Documents and Settings\All Users\Application Data\VMware\vSphere Web Client\ssl" --ls-url https:// SSOServer.domain.com:7444/lookupservice/sdk --username admin@System-Domain --password password --dir "Installation_Directory\vSphereWebClient\SsoRegTool\sso_conf" --ip "*.*" --serviceId-file "Installation_Directory\vSphereWebClient\serviceId"
Where:Installation_Directoryby default isC:\Program Files\VMware\Infrastructurepasswordis theadmin@system-domainpassword
If the command is successful, the output appears similar to:
- On Windows 2008, run the command:
- Open the
Installation_Directory\vSphereWebClient\serviceIdfile in a text editor and remove the two old service lines. In this example, the old lines end in:9and:10(shown in the screenshot from step 11) and the new lines end with:14and:15(shown in the screenshot from step 12). There should only be the two lines in the file corresponding to the registered services in the screenshot in step 12.
After editing, the file looks similar to:
- Start the VMware vSphere Web Client service from the service control manager. It may take about 5 minutes to initialize fully.
- Start the VMware vSphere Log Browser service from the service control manager.
- To test that the certificate is valid, log into the vSphere Web Client and check that the Inventory is accessible and that the certificate is properly installed.
- If they are not on separate servers or you cannot restart the server, stop and start the services in this order:
- Stop the VMware Log Browser service.
- Stop the VMware vSphere Web Client service
- Stop the VMware VirtualCenter Server service
- Stop the VMware vCenter Inventory service
- Stop the vCenter Single Sign On service
- Start the vCenter Single Sign On service
- Start the VMware vCenter Inventory service
- Start the VMware VirtualCenter Server service and the VMware VirtualCenter Management WebServices servic
- Start the VMware vSphere Web Client service.
- Start the VMware Log Browser service.
- Wait 5 minutes for the services to start completely.
- Log in and check that the Log Browser is functioning correctly.
Note: If the service is not fully started, you will not see the option for the Log browser. Log out and log back in after a few minutes. It is available after it has completely loaded.
The configuration of the custom certificates for the vSphere Web Client and the Log Browser is now complete. Next, continue to install the custom certificates for vSphere Update Manager. For more information, see Implementing CA signed SSL certificates with vSphere 5.1 (2034833).
See Also
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

