vCloud Automation Center 6 Certificates A to Z

While working on delivering vCAC 6 engagements, I have noticed that getting all the certificates required in place has always required me to jump across different information sources between VMware documentation, blogs, & other consultants work. For that I have decided to put this guide together which cover the certificates process for a new vCAC 6.x installation from A-Z to easy the process for myself and others. I start all the way from how to install your own CA and continue all the way till you assign the certificates to each component. Before I start going through the details, I have to give credits where due. This document has incorporated information from all of the below sources:

While I have used a lot of material and knowledge that I have gained from the above sources, I have incorporated these steps at different customers, and carried out the full work again in my lab to get all the screenshots being consistent across the full procedure. Hope you will find it useful.

Note: for vRealize Automation 7, please check out following blogpost: Replacing Certificates in vRealize Automation 7

Good to know

This section gives you some important vCloud Automation 6 certificates faqs and recommendations, that you will need to know before getting started.

  • VMware recommends a domain certificate or a wildcard domain certificate for a distributed installation.
  • The certificate in PFX (for Windows) and PEM (for Appliances and Load Balancer) formats.

vCloud Automation 6 Needed Certificates

While initially I will be focusing on generating and using certificates for a new vCAC 6 installation, the below is something to consider if you have an existing installation and vCAC 6 setup and you want to replace your self-signed certificates with signed certificates.

  • Update components Certificates in the following order:
  1. Identity Appliance
  2. vCloud Automtation vCenter Appliance
  3. IaaS components
  • With one exception, changes to later components do not affect earlier ones. For example, if you import a new certificate to a vCloud Automation Center Appliance, you must register this change with the IaaS server, but not with the Identity Appliance. The exception is that an updated certificate for IaaS components must be registered with vCloud Automation Center Appliance.
  • The following table shows registration requirements when you update a certificate.

     

vCloud Automation Center 6 Certificates Registeration Requirements

First Step: Installing Domain CA:

 

1. From Windows Server Roles, Install Active Directory Certificate Services

Install Active Directory Certificates Role

2. Make sure to choose both Certification Authority & Certifications Authority Web Enrollment on the Role Service screen

Install Microsoft CA Role Services

 3. Choose Enterprise at the setup Type page

Microsoft CA - Choose Enterprise Setup at the Setup Type Page

    4.Assuming this is your first CA, choose Root CA at the CA Type screen

Create Root CA for your Active Directory Domain

    5. Create a new private key

Generate Private Key for your Certificate Authority

 

6. Configure Cryptography for CA as below screenshot

Configure your Domain CA Cryptography

    7. Configure your CA Name

Configure your Certificate Authority Name

    8. Set validity period for the certificate generated by this CA

Set your Certificate Authority Cerificates validity

Second Step: Creating vCAC Certificate templates

We will need to create a non-standard Certificate Template, which is a copy of the standard Web Server template modified to allow for export of the certificate key. In addition, the Microsoft CA will be updated to allow for Subject Alternative Names (SANs) as specified in the Attributes.

Follow the below steps to create the new default template:

To create a new default template:

  1. Connect to the Root CA server or Subordinate CA server via RDP.
  2. Click Start > Run, type certtmpl.msc, and click OK. The Certificate Template Console opens.
  3. In the middle pane, under Template Display Name, locate Web Server.
  4. Right-click Web Server and click Duplicate Template.
  5. In the Duplicate Template window, select Windows Server 2003 Enterprise for backward compatibility.
  6. Click the General tab.
  7. In the Template display name field, enter vCAC Certificate as the name of the new template.
  8. Click the Extensions tab.
  9. Select Key Usage and click Edit.
  10. Select the Signature is proof of origin (nonrepudiation) option.
  11. Select the Allow encryption of user data option.
  12. Click OK.
  13. Select Application Policies and click Edit.
  14. Click Add.
  15. Select Client Authentication.
  16. Click OK.
  17. Click OK again.
  18. Click the Subject Name tab.
  19. Ensure that the Supply in the request option is selected.
  20. Click the Request Handling tab
  21. Ensure that the Allow private key to be exported option is selected
  22. Click OK to save the template.

Adding a new template to certificate templates

To add a new template to certificate templates:

  1. Connect to the Root CA server or Subordinate CA server via RDP.Note: Connect to the CA server in which you are intending to perform your certificate generation.
  2. Click Start > Run, type certsrv.msc, and click OK. The Certificate Server console opens.
  3. In the left pane, if collapsed, expand the node by clicking the [+] icon.
  4. Right-click Certificate Templates and click New > Certificate Template to Issue.
  5. Locate vCAC Certificate under the Name column.
  6. Click OK.

A new template option is now created in your Active Directory Certificate Services node. This new template can be used in the place of Web Server for the vSphere 5.x CA certificate.

Third Step: Installing OpenSSL version 0.9.8.

Use the below steps install OpenSSL which will be used to request the required certificates:

Important: Ensure that you are using OpenSSL version 0.9.8. If you do not use this version, the SSL implementation will fail.

To setup OpenSSL:

  1. Ensure that the Microsoft Visual C++ 2008 Redistributable Package (x86) is installed on the system on which you want to generate the requests. To download the package, see the Microsoft Download Center.
  2. Download the Shining Light Productions installer for OpenSSL x86 version 0.98r or later at http://www.slproweb.com/products/Win32OpenSSL.html. This is a software developed from the OpenSSL Project.
  3. Launch the installer and proceed through the installation and note the appropriate directory for later use. By default, it is located at c:\OpenSSL-Win32.

This tutorial include another two posts. Below is the links for the other two posts:

Trackbacks

  1. […] and of course that makes doing certificates harder – hardest?  But it is good to find in one place the info you need to successfully manage the certs in vCAC […]

  2. […] 6- Certificates enhancements, Added certificate validation and simplification in vRealize Automation Management console. This should help you get your certificates right the first time. If you are still having issues generating the right type of certs, then you might want to look at my previous post: vCloud Automation Center 6 Certificates A to Z […]

  3. […] 1- vCloud Automation Center 6 Certificates A to Z  <== This one has stayed exactly the same for vRA 7.0. You can follow it as is. […]

Speak Your Mind

*