Streamlining Security: A Guide to Certificate Management in VCF

Introduction

Ensuring robust security is a critical aspect of managing any IT infrastructure. In VMware Cloud Foundation, effective certificate management is key to enhancing security measures. This guide aims to streamline the process, offering a comprehensive overview of certificate management within the VMware Cloud Foundation environment. From replacing self-signed certificates with those signed by a Certificate Authority (CA) to managing certificates for various components, this guide provides step-by-step instructions and best practices to help organizations effectively manage and secure their VMware Cloud Foundation deployment.

Certificate Management

In VMware Cloud Foundation, managing certificates is crucial for enhancing security. It's a common practice for IT organizations to replace self-signed certificates with those signed by their Certificate Authority (CA). VMware Cloud Foundation simplifies this process, allowing users to update and manage certificates easily.

Cloud Foundation enables managing certificates for all external-facing components, including configuring a certificate authority, generating and downloading Certificate Signing Requests (CSRs), and installing certificates. It supports Microsoft certificate authority, Open SSL, and 3rd party certificate authorities.

You can manage certificates for various components, such as vCenter Server, NSX Manager, and SDDC Manager.

Review Certificate Authority

  1. Navigate to the SDDC Manager interface by selecting the first browser tab.
  2. In the left navigation window, expand the Security menu.
  3. Click on the Certificate Authority sub-menu item.

The connection from the SDDC Manager to the backend Certificate Authority is already established.

Generate CSR

  1. In the left navigation window, click on the Inventory menu item.
  2. Select the Workload Domains sub-menu item.
  3. Click on the "mgmt-wld" Domain link on the resulting screen.
  4. Select the Certificates Tab.
  5. Place a check in the box next to the SDDC Manager. Note that we will be replacing the SDDC Manager certificate due to time constraints.
  6. Uncheck any other boxes.
  7. Click on the GENERATE CSRS button. Review the current date that the certificate is valid through.

Generate CSR Wizard

Click NEXT

To populate the fields in the CSR (Certificate Signing Request) wizard with the following information, follow these steps.

  • Algorithm: RSA
  • Key Size: 2048
  • Email: [email protected]
  • Organizational Unit: IT
  • Organization: Rainpole
  • Locality: Palo Alto
  • State: CA
  • Country: US
  1. Common Name (CN): Enter the fully qualified domain name (FQDN) of the SDDC Manager, e.g., sddcmanager.example.com.
  2. Organization (O): Enter the name of your organization, e.g., Example Corp.
  3. Organizational Unit (OU): Enter the department or unit within your organization, e.g., the IT Department.
  4. Locality (L): Enter the city or locality of your organization, e.g., New York.
  5. State (ST): Enter the state or region of your organization, e.g., New York.
  6. Country (C): Enter the two-letter country code of your organization, e.g., US.
  7. Email Address: Enter the email address associated with the certificate, e.g., [email protected].

After entering this information, proceed with the CSR generation process according to the prompts provided by the wizard.

If there are any Subject Alternative Names, you can enter them here. However, for this lab, we will leave this field blank

  1. Click NEXT

Click on GENERATE CSRS

Generate Signed Certificate

  1. After generating the CSR, click on the GENERATE SIGNED CERTIFICATES button.
  2. Choose Microsoft as the Certificate Authority.
  3. Click on the GENERATE CERTIFICATES button.

Note that this process may take a minute or two to complete.

If you were using a 3rd party Certificate Authority, you would click download CSR after step 1 to submit to the 3rd party Certificate Provider.

Certificate Generation Validation

Certificate Installation

  1. Check the box next to "sddcmanager".
  2. Click on the INSTALL CERTIFICATES button.

Note: If the INSTALL CERTIFICATES button is not active, refresh the browser to get the latest update.

Verify that the Certificate Installation Status for the "sddcmanager" shows SUCCESSFUL.

Certificate Installation Validation

SSH to SDDC Manager and Restart the SDDC Manager Service

  1. Switch to the root user by entering "su" in the terminal.
  2. When prompted for a password, enter "Password123!".
  3. Enter the following command:
    Sh /opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh 
  4. Enter Y to proceed

Log in to SDDC Manager

After restarting the service, you will need to log back into the SDDC Manager. The service may take 2-3 minutes to fully restart.

Verify Certificate Replacement

  1. Click on the lock icon.
  2. Select "Connection is Secure."
  3. Click on "Certificate is Valid."

Verify Certificate Continued

  1. Click on the Details tab.
  2. Check that the Valid to date is 2 years from the current date.
  3. Select the Serial Number and note the number.

Navigate to the Management workload Domain

  1. Choose Workload Domains.
  2. Select the "mgmt-wld" workload domain.

Verify CERT Serial Number

  1. Click on Certificates.
  2. Expand the SDDC Manager. Note that the number matches.


Similar Articles
Ezmata Technologies Pvt Ltd
You manage your core business, while we manage your Infrastructure through ITaaS.