VMware security certificates
Last updated:
Create template
Create template using Creating a Microsoft Certificate Authority Template for SSL certificate creation in vSphere 6.x/7.x (2112009) (vmware.com)
VMware does not recommend replacing either solution user certificates or STS certificates, nor using a subordinate CA in place of the VMCA. If you choose either of these options, you might encounter significant complexity and the potential for a negative impact to your security, and an unnecessary increase in your operational risk.
With the “hybrid” approach, custom certificates are used for the Machine SSL certificates of the Platform Services Controller and vCenter Server VMs and then the VMCA is left to manage the Solution Users and ESXi host certificates.
NOTE: HA is disabled during activity, so disable HA manually. And take snapshot. Certificates must be base64 encoded.
Overview
- Generate a Certificate Signing Request for the externally-facing vSphere Web Client login page (The Machine SSL certificate)
- Submitted the CSR to the Microsoft Certificate Authority and downloaded the newly generated certificate and root CA certificate
- Using the Certificate Manager utility we replaced the Machine SSL certificate with the certificate generated by the Microsoft CA
- Verify that the vSphere Web Client login page is now using the Microsoft CA-issued certificate
Steps
- Create a folder on appliance which you will be able to download: /tmp/sslcerts
- Generate CSR
- Utility is present at: /usr/lib/vmware-vmca/bin/certificate-manager
- Run the utility and select Option 1
- Select Option 1 again, to generate the CSR and provide the output directory path (created above) to write out the files created
- Download the created csr file and key
- Submit csr to CA
certreq -attrib "CertificateTemplate:WebServer" <nameofcert.cer>
- If you don’t have an export of the root certificate start a elevated command prompt on the CA server and run this command.
certutil -ca.cert root_certificate.cer
- Copy the .cer, key and root.cer to the VCSA.
- Open up the Certificate Manager Utility and select Option 1, Replace Machine SSL certificate with Custom Certificate. Provide the password to your [email protected] account and select Option 2, “Import Custom Certificate(s) and key(s) to replace existing Machine SSL certificate”
- Select “Y” to continue the operation. This may take a few minutes, depending on how your systems are configured.
Replacing vCenter 6.0’s SSL Certificate (vmware.com) VMware vCenter Replace Machine Certificate With Custom CA - Virtualblog.nl VMware vCenter Certificate Replacement - Dasher vSphere Security Certificates (vmware.com) New Product Walkthrough - Hybrid vSphere SSL Certificate Replacement - VMware vSphere Blog