Establishing a Trusted Connection with a KeyControl-Generated CSR

The following procedure describes how to create a certificate bundle on the HyTrust KMIP server that uses a Certificate Signing Request (CSR) generated by KeyControl. The KMIP certificate can then be uploaded to vSphere to establish a trusted connection between vSphere and the HyTrust KMIP server.

You can also establish a trusted connection using a vSphere-generated CSR. For details, see Establishing a Trusted Connection with a vSphere-Generated CSR.

Note: The following procedure is based on vCenter Web Client in vSphere 6.5. If your version of the vCenter Web Client is different from what is described below, please see your vCenter documentation to determine how to add the KMS cluster.

  1. Log into the KeyControl webGUI using an account with Security Admin privileges.
  2. In the top menu bar, click KMIP.
  3. Click the Client Certificates tab.
  4. Select Actions > Create Certificate.
  5. In the Create a New Client Certificate dialog box:

    1. Enter a name in the Certificate Name field.
    2. Set the date on which you want the certificate to expire in the Certificate Expiration field. If the certificate expires, communication between vSphere and KeyControl will be disrupted until a new certificate is uploaded.

      Important: Do not enter a password for the certificates. Due to a vSphere limitation, you cannot upload encrypted certificates.

      The following example creates a certificate bundle called vSphereKMS with a certificate expiration date of December 31, 2019.

    3. Click Create.
  6. On the Client Certificates tab, select the certificate bundle you just created.
  7. Select Actions > Download Certificate. The webGUI downloads <certname_datetimestamp>.zip, which contains a user certification/key file called <certname>.pem and a server certification file called cacert.pem.
  8. Unzip the file so that you have the <certname>.pem file available to upload into vCenter. In the example above the certificate file would be named vSphereKMS.pem.
  9. Launch the vSphere Web Client and select the vCenter server to which you added the KeyControl KMS cluster.
  10. Click the Configure tab for the server.
  11. In the left-hand pane, click More > Key Management Servers.
  12. Select the KeyControl KMS cluster in the list then select All Actions > Establish Trust with KMS.
  13. In the Establish Trust with KMS dialog box, select Upload certificate and private key then click OK.
  14. In the Upload Certificate and Private Key dialog box, you need to upload the <username>.pem file you created twice, once for the KMS certificate and once for the private key. To do so:
    1. Click Upload file under the KMS certificate text box.
    2. Select the <username>.pem file and click Open.
    3. Click Upload file under the private key text box.
    4. Select the <username>.pem file again and click Open.
    5. Click OK.

      The following illustration shows a certificate called vSphereKMS.pem being uploaded to vSphere:

  15. After <username>.pem has been uploaded, click OK.
  16. Wait until vCenter reports that the connection status for the KMS cluster has changed to "Normal".
  17. For a multi-node cluster, add the additional KeyControl server IP addresses to the same vSphere KMS cluster to provide a failover mechanism:
    1. Select the HyTrust KMS you created.
    2. Click Add KMS.
    3. In the KMS Cluster field, make sure the HyTrustKMS cluster is selected.
    4. Enter the server alias, address, and port for the additional KeyControl KMIP server.
    5. Click OK.
    6. In the Trust Certificate dialog box, click Trust.

The following illustration shows a HyTrust KMS with three KMIP servers:

HyTrust KMS Cluster in vSphere

The critical information is the Connection Status for each KMIP server in the cluster and the Certificate Status for the overall KMS cluster. The certificate status for the individual KMIP servers in the cluster can be ignored.