Establishing a Trusted Connection with a vSphere6-Generated CSR
The following procedure describes how to generate a Certificate Signing Request (CSR) in vSphere and then use that CSR to create a certificate bundle on the Entrust KMIP server. The KMIP certificate can then be uploaded to vSphere to establish a trusted connection between vSphere and the Entrust KMIP server.
You can also establish a trusted connection using a KeyControl-generated CSR. For details, see Establishing a Trusted Connection with a KeyControl-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.
- In the vSphere Web Client, go to Key Management Servers.
- Select the KMS you want to trust in the list then select All Actions > Establish Trust with KMS.
-
In the Establish Trust with KMS dialog box, select New Certificate Signing Request then click OK.
vSphere creates a CSR and displays it in the New Certificate-Signing Request dialog box.
-
Click Download as file and save the CSR to your computer. By default, vSphere names the CSR file
cluster-name_signed_csr.pem
.After you save the file, leave the New Certificate-Signing Request dialog box open.
- Log in to the KeyControl KMIP Tenant GUI.
- From the KeyControl KMIP Tenant GUI, select Security > Client Certificates.
- On the Client Certificates tab, click the + icon on right top corner to create new client certificate.
-
In the Create Client Certificate dialogue, specify the options you want to use and click Create.
Field
Description
Certificate Name
A user-defined name for this bundle. If you are going to create multiple KMIP certificate bundles, this name should be descriptive enough that you can tell the certificate bundles apart.
The name can only contain letters, numbers, dashes, periods, underscores, and spaces, and cannot be changed after the bundle is created.
Certificate Expiration
The date on which the certificates in the bundle will expire. If the certificates expire, communication between the KeyControl KMIP server and the client will be disrupted until a new certificate bundle is uploaded to the client.
Important: The KeyControl KMIP Tenant GUI does not show any alert about expiring KMIP client certificates. Users should monitor and periodically update client certificates that are about to expire.
Certificate Signing Request (CSR)
If you want the KMIP server to use an external CSR, click Load File and upload the CSR you want to use. The custom CSR must:
- Be in PKCS#10 format.
- Have a non-empty Common Name.
- If keyUsage is specified, it must include 'digitalSignature'.
If you do not specify an external CSR, KeyControl uses an internally-generated CSR to create the certificate.
Certificate Password/Confirm Password
If you have selected Encrypt Certificate Bundle, provide a passphrase to encrypt the certificates in the bundle.
Whether the certificates need to be encrypted depends on the way your security is configured and the type of implementation you are using. Not all third-party KMIP clients can accept encrypted certificates.
For example, if you are integrating KeyControl with VMware vSphere Encryption, you cannot specify a certificate passphrase due to limitations with vSphere.
- Select the certificate bundle you just created.
-
Click the Download button on right top corner to download the certificate bundle.
The webGUI downloads
<certname_datetimestamp>.zip
, which contains a user certification/key file called<certname>.pem
and a server certification file calledcacert.pem
. - Select the certificate bundle you just created in the certificate list.
- 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 calledcacert.pem
. - 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 namedKMIPvSphereCert.pem
. - Go back to the New Certificate-Signing Request dialog box in the vSphere Web Client and click Upload file.
-
Navigate to the KMIP certificate
<username>.pem
, select the file, and click Open. vSphere displays the certificate in the lower half of the New Certificate-Signing Request dialog box. - Click OK and wait until vCenter reports that the connection status for the KMS cluster has changed to "Normal".
- For a multi-node cluster, add the additional KeyControl server IP addresses to the same vSphere KMS cluster to provide a failover mechanism:
- Select the Entrust KMS you created.
- Click Add KMS.
- In the KMS Cluster field, make sure the EntrustKMS cluster is selected.
- Enter the server alias, address, and port for the additional KeyControl KMIP server.
- Click OK.
- In the Trust Certificate dialog box, click Trust.
The following illustration shows a Entrust KMS with three KMIP servers:
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.