VCF 3.0 Automatically Replace SSL Certificates

One of the coolest features in the VMware Cloud Foundation 3.x release is in my opinion the ability to automatically replace SSL certificates for vSphere and vRealize components. SDDC Manager supports both Microsoft and non-Microsoft certificate authorities but in current release only Microsoft Certificate Authority is supported for automatic replacement of the certificates. I am not going to explain how to set up a MSCA but in case you need one, there are configuration steps available in the VCF documentation.

In current version, SDDC Manager can manage and automatically replace SSL certificates for the following components:

  • Platform Services Controllers
  • vCenter Server
  • NSX Manager
  • SDDC Manager
  • vRealize Automation
  • vRealize Log Insight
  • vRealize Operations

Before you begin, make sure you have created the certificate template with proper authentication configuration as described in the documentation.

Configure Certificate Authority

Before you can start automatically replacing the SSL certificates, you must configure the Certificate Authority in the SDDC Manager.

  1. From the SDDC Manager dashboard, go to Security under the Administration menu and select Certificate Management.
  2. Provide the MSCA Server URL, username and password, and the template name.VCF 3.0 Replace SSL Certificates 01
  3. Accept the CA Server certificate details and click Save.

Replace SSL Certificates

Once the Certificate Authority is set up, you can start replacing the SSL certificates. In this example I will replace the certificates in the Management workload domain.

  1. From the Inventory menu, go to Workload Domains and open the Management workload domain.
  2. Select all components.VCF 3.0 Replace SSL Certificates 04
  3. Click Generate CSR and provide the information as needed. Click Generate CSR.VCF 3.0 Replace SSL Certificates 05
  4. Wait until the CSR generation process completes. When finished, the CSR Generation Status column will display Successful for every component selected.VCF 3.0 Replace SSL Certificates 07
  5. Next, click Generate Signed Certificates.
  6. Select the Microsoft Certificate Authority from the drop-down menu and click Generate Certificates.
  7. Wait until the certificate generation is completed. When finished, the Certificate Generation Status column will display Successful for every component selected.VCF 3.0 Replace SSL Certificates 09
  8. Click Install Certificates and wait until the Certificate Installation Status column changes to Successful for every component selected.

At this point all SSL certificates are replaced in the Management workload domain. You can use the same procedure to replace SSL certificates when you create new workload domain.

Post SSL Certificate Replacement tasks

  • If you replaced the SDDC Manager certificate, you must restart the SDDC Manager service by running the # sh /opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh This will establish a new connection between the SDDC manager and the components in the Management workload domain using the new certificate.
  • If you replaced the SSL certificate for the vROps, you must reconfigure the NSX load balancer node by following this procedure.
  • If you replaced the vRA certificate as well, you must ensure that the vRealize Automation resource root certificate is trusted by all the vRealize Automation VMs in your deployment.

Cheers!

Marek.Z

Be the first to comment

Leave a reply...