An easy way to increase the security of an environment, and a common practice for most IT organizations, is to replace the self-signed certificates that are generated during installation with a certificate signed by the organization’s Certificate Authority (CA). VMware Cloud Foundation simplifies this process allowing customers to easily update and manage these certificates.
You can manage certificates for all external-facing Cloud Foundation component resources, including configuring a certificate authority, generating and downloading CSRs, and installing them. Cloud Foundation supports the use of Microsoft certificate authority, OpenSSL, and 3rd party certificate authorities.
You can manage the certificates for the following components.
- vCenter Server
- NSX Manager
- SDDC Manager
Log in to SDDC Manager
Once the browser has launched follow these steps to log in.
- Enter https://<sddcfqdn>/ui in your browser
- In the User name box enter: administrator@vsphere.local
- In the Password box enter: VMware123!
- Click the LOGIN button
Review Certificate Authority
- Expand the Security menu item in the left navigation window.
- Click the Certificate Authority sub-menu item.
As we can see the connection from SDDC Manager to the domains Certificate Authority has already been established.
Generate CSR
- Click the Inventory menu item in the left navigation window.
- Click the Workload Domains sub-menu item.
- On the resulting screen, Click the mgmt-domain Domain link.
- Select the Certificates Tab.
- Place a check in the box next to the SDDC Manager.
- Click on the GENERATE CSRS button.
NOTE: Review the current date that the certificate is valid through.
Generate CSR Wizard
Populate the fields in the CSR wizard with the following information.
Algorithm: RSA
Key Size: 2048
Email: sam@vcf.holo.lab
Organizational Unit: IT
Organization: Holodeck
Locality: Palo Alto
State: CA
Country: US
- Click NEXT
If you have any Subject Alternative Names you may enter them here.
- Click NEXT
Generate Signed Certificate
- Notice the green banner stating CSR Generation is successful.
- Ensure that SDDC MANAGER is still selected
- Now that the CSR has been generated, click the GENERATE SIGNED CERTIFICATES button.
- Select Microsoft as the Certificate Authority
- Click on the GENERATE CERTIFICATES button.
NOTE: This may take a minute or two to complete. If you were using a 3rd party CA, you would click download CSR after step 1. to submit to the 3rd party Certificate Provider.
Certificate Generation Validation
Certificate Installation
- Place a check in the box next to the SDDC Manager
- Click INSTALL CERTIFICATES
Note: If the INSTALL CERTIFICATES button is not activated. Refresh the browser to get the latest update.
This process takes a couple of minutes to replace the certificate. Verify that the Certificate Installation Status for the SDDC Manager shows SUCCESSFUL.
Certificate Installation Validation
SSH to SDDC Manager
- Launch Putty
- Enter sddc-manager IP (or) FQDN
- Click Open
Restart the SDDC Manager Services
- Enter PASSWORD when prompted for the password.
- Enter su to switch to the root user.
- Enter PASSWORD when prompted for a password.
- Enter the following command: sh /opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh
- Enter Y to proceed
Note: This may take a 1-2 minutes to complete. You should expect to see a message stating “Finished initiating restart for all SDDC Manager services”.
Log in to SDDC Manager
Once the browser has launched follow these steps to log in.
- Enter https://<sddcfqdn>/ui in your browser
- In the User name box enter: administrator@vsphere.local
- In the Password box enter: VMware123!
- Click the LOGIN button
Verify Certificate Replacement
- Select the lock icon
- Click on Connection is Secure
- Click Certificate is Valid
- Click on More Information
- Click on View Certificate
- Verify that the Valid to date is at least 2 years from the current date.
- Select the Serial Number. Note the number.
- Close browser tab.
Navigate to the Management Workload Domain
- Select Workload Domains
- Select the mgmt-domain workload domain
Verify Cert Serial Number
- Click Certificates
- Expand the SDDC Manager
Note that the number matches.
Conclusion
We have reviewed certificate replacement process in VCF. Using this process you can easily replace certificates from VMware Cloud Foundation and manage all certificates from centralized location.