In this section we are going to cover “Manage SSL certificates”
Here are the objective from the blueprint :
- Configure and manage VMware Certificate Authority
Using VMware workstation:
- Microsoft Servers 2012R2 for Services (ADCS,DNS , DHCP, etc…)
- Installed esx0
- Installed VCSA
- vSphere Security Guide
- VMware KB 2112016
Configure and manage VMware Certificate Authority:
In vSphere 6.0 and later, the VMware Certificate Authority (VMCA) provisions your environment with certificates. This includes machine SSL certificates for secure connections, solution user certificates for authentication to vCenter Single Sign-On, and certificates for ESXi hosts that are added to vCenter Server.
The following certificates are in use.
There are many variation of how to configure VMCA , i choose to configure VMCA as a subordinate CA to Microsoft enterprise CA.
Configuring VMware vSphere 6.0 VMware Certificate Authority as a subordinate Certificate Authority:
To perform this task i followed VMware KB 2112016 in my lab , please see my previous post about installing Microsoft ADCS.
Here are the steps:
- Connect to the vmware certification manager and choose option 2 to replace VMCA root certificate with custom signing certificate and replace all certificate. To perform this task do the following
- if you using VCSA , you will need to enable SSH (if you didnt do so)
- SSH to the VCSA and change directory to /usr/lib/vmware-vmca/bin/ and run the ./certificate-manager util.
- Choose Option 2
- Enter the SSO password.
- choose Option 1 to Generate Certificate Signing Request(s) and Key(s) for VMCA Root Signing certificate
- verify that you have 2 files in the specific location
- Copy the “root_signin_cert.csr” file to your windows AD server , you can use WinSCP for that
- you might have a problem connecting to the shell with WinSCP (I did) , change the advanced setting SFTP server to shell /usr/lib64/ssh/sftp-server
- Open the Windows Certificate Web Enrollment and perfom the following:
- Click on Request a certificate
- Click on advanced certificate request
- Click on Submit a certificate request….
- Change the certificate template to “Subordinate Certification authority“
- Copy and paste the .CSR file content in to the saved request window and click on submit
- Download the Certificate chain by changing to “base 64 encoded” and click on download certificate chain
- Double click on the new downloaded certification and export the certifications
- Right click on the CA certification >> all task>>export
- Change the format to base 64 encoded
- save the file with the same certificate name
- repeat this process for the Root CA
- merge the two certification together using text editor make sure to CA certificate is at the top and the root at the bottom
- Use a new text file to combine the two certs and dont forget to change the file extension to .cer
- copy the new .cer file back to vCenter
- Go back to the certificate-manager util and choose the option 1
- provide the location for the new .cer file and click enter
- Provide the locate for the .key file generated at the begining (root_signin_cert.key) and click enter
- Press Yes and wait for the process to finish.
- Verify by looking at vCenter HTTPs certificate path
Enabling SSH on vCenter:
WinSCP config change:
Certification manager screenshot:
Uploading Certificate via Web enrollment:
Thanks for reading