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 Inventory Service
These steps must be followed to ensure successful implementation of a custom certificate for vCenter Server. Before attempting these steps ensure that:
Installation and configuration of the certificate for the Inventory Service
When the vCenter Single Sign-On (SSO) certificates have been replaced, you can replace the Inventory Service certificates.
To complete the installation and configuration of the certificate for the Inventory Service:
- Log in to the Inventory Service server as an administrator.
- If you have not already imported it, double click on the c:\certs\Root64.cer file and import the certificate into the Trusted Root Certificate Authorities > Local Computer Windows certificate store. This ensures that the certificate server is trusted.
- Open a command prompt to the Inventory Service\scripts directory. The default directory is C:\Program Files\VMware\Infrastructure\Inventory Service\scripts.
- Unregister the Inventory Service from vCenter Single Sign-On by running the command:
unregister-sso.bat Lookup_Service_URL SSO_administrator_user SSO_administrator_password
Where Lookup_Service_URL is https://ssoserver.domain.com:7444/lookupservice/sdk. Change the port if needed.
If the command is successful, you see output similar to:
- Run this command from the command-line to stop the VMware vCenter Inventory Service:
net stop "vimqueryservice"
- Navigate to the Inventory Service certificate directory and backup the certificates. By default, this is C:\ProgramData\VMware\Infrastructure\Inventory Service\ssl\.
- Copy the new certificate files, rui.crt, rui.key, and rui.pfx to this directory. If you are following this resolution path, the new certificates are in c:\certs\InventoryService\.
- Run this command from the command-line to start the VMware vCenter Inventory Service:
net start "vimqueryservice"
- Register the vCenter Inventory Service to vCenter Single Sign-On by running the command:
register-sso.bat Lookup_Service_URL SSO_administrator_user SSO_administrator_password
Where the Lookup Service URL is https://ssoserver.domain.com:7444/lookupservice/sdk. Change the port if needed.
If the command is successful, you see output similar to:
- Verify that the VMware vCenter Inventory service is still running. If it is not running, start it.
- Browse to https://InventoryService.domain.com:10443/. You may receive a 400 Bad request page, but you can check that the certificate is being properly used.