To encrypt data at rest using vSAN encryption, one option is to use the Next Generation KeySecure Image, a Thales Key Management Service (KMS).
Before you begin
- Create a Google Cloud project or use an existing one.
Access and install the Next Generation KeySecure Image KMS
After you purchase the KMS, you receive an email message from Thales. Click
Accept this invitation to access privileges to the
To access a KeySecure image, you might need to copy the image to another account. To do this, create a Compute Engine image from a zipped disk image. To get permission to zipped disk images, contact your sales manager or support.
Create an image from a zipped KeySecure image
To create an image from the source URI
20181031022613.tar.gz, run the following command:
gcloud compute images create image-name --source-uri gs://kylo-images/k170v-2411- 20181031022613.tar.gz
You can list images using the following command:
gsutil ls gs://kylo-images gs://kylo-images/k170v-2369-20181008172807.tar.gz gs://kylo-images/k170v-2411-20181031022613.tar.gz
Create an instance from the KeySecure image
In the Google Cloud Console, go to the Images page.
Select the k170v image.
Select Create instance.
Select New VM instance and configure the machine as follows:
- Use a Boot disk that is at least 30 GB for evaluation use or at least 135 GB for production use.
- Choose a machine type with 16 GB of memory and at least 2 vCPUs.
Create an SSH key by using PuTTYgen key generator.
- Download and open PuTTYgen.
- Check SSH-2RSA.
- Click Generate.
- Save the private and public SSH keys in a secure location.
On the Create an instance page under SSH Keys, paste the public SSH key that you just generated in the SSH key window.
Configure the vSphere environment
- In vCenter, navigate to Configurations > More > Key management servers.
- Select the k170v image.
- CLick Add.
- Create a new cluster. Clusters are used to ensure high availability of the key manager for various key management and encryption use cases. A Cluster can have multiple 170v nodes. Include a cluster name and a reachable 170v IP address, and use port 5696.
- Under Establish trust, click Make vCenter trust KMS.
- Click Trust.
- Generate a new certificate signing request (CSR) to help establish the connection between vCenter and k170v. Select New Certificate Signing Request (CSR) and click Next. You can either copy or download the CSR.
Configure the k170v appliance
- Log in to the KeySecure Management Console.
- In a browser, navigate to https://IP-address, where IP-address is your k170v server IP address.
- The default username and password are admin.
- You are prompted to change the password.
- Log in again with your new username and password.
- In vCenter, click Keys & access management.
- Click Registration tokens > New registration token.
- Click Begin.
- Define the token metadata. Set the values for Name Prefix, Token Lifetime, Certificate Duration, and Client Capacity.
- Click Next.
- The default Local CA is preselected. Click Create token.
- Copy the generated registration token and click Done.
- On the vCenter main menu, navigate to Admin settings > System > Interfaces.
- Configure a port for the k170v server to use to communicate with vCenter.
- KMIP uses the default port 5696. You can edit or create a new KMIP interface by clicking the vertical more menu and clicking Edit.
- Paste the registration token that you generated earlier.
- Click Update.
- Restart the KMIP system service. Navigate to the System > Services menu and click System restart.
Sign the vCenter certificate signing request (CSR)
- In vSphere, navigate to Keys & access management and click CA.
- Under Local certificate authorities click the Subject hyperlink.
- Select Upload and sign CSR.
- Paste the CSR copied from vSphere and click Issue certificate.
- Click the vertical more menu next to the certificate you signed and click Copy.
- Create a user on 170v with the name from the certificate that was generated by vCenter.
- In Keys & access management, click Users.
Click Create new user. The username is derived from the signed CSR:
After the user is created, click User from the navigation menu.
To add permissions, clickthe vertical more menu for the user you just created.
Check Key users to add the user to the key users group.
Upload the signed CSR to vSphere
- In vSphere, click Upload signed certificate.
- Select the Privacy Enhanced Mail (.PEM) file for the certificate or copy and paste the CSR from the k170v appliance.
- Click Make vCenter trust KMS.
- Click Trust.
- To enable vSAN Encryption, log in to the vSphere client and navigate to VSAN > Service. Click Encryption and then click Edit to generate new encryption keys.
- In the vSAN services window, enable encryption. Choose the cluster that you created eariler and click Apply.
- In the Records tab, vCenter generates a token and key.
Create a 170v cluster and add it to vCenter
To support high availability, run two k170v servers in your cluster. After the 170v cluster has been configured, items configured earlier are replicated as part of the clustering process, For example, vSphere replicates configuration steps such as creating the registration token, defining the user, defining the KMIP port, the encryption keys and CSR.
- In vSphere, select Key management servers.
- Select the additional k170v node and click Add.
- Under Make vCenter trust KMS, click Trust.