1.0 Introduction
This article describes how to use Fortanix-Data-Security-Manager (DSM) for VM encryption through VMware Cloud Director. It also contains the information that a user requires for:
Facilitating the communication and authentication between Fortanix DSM and vCenter using the KMIP interface
Setting up Fortanix DSM.
Exposing VM Encryption storage policy to tenants
Enabling VM Encryption storage policy for VM encryption
2.0 KMIP and Certificate Requirements
The Key Management Interoperability Protocol (KMIP) is used to facilitate communication between the vCenter and Fortanix DSM. KMIP uses Transport Layer Security (TLS) to provide a secure connection and Fortanix DSM also uses this to Authentication a KMIP client to successfully create, retrieve and use the keys stored inside Fortanix DSM.
2.1 Prerequisites
vCenter connected to Cloud Director 10.0 or later is installed and operational.
Fortanix DSM version 3.20 or later.
Fortanix DSM is installed and operational, and is accessible by the vCenter on port 5696 (for default) or custom KMIP port.
2.2 Considerations
The following are some key points to understanding the Fortanix DSM for VM encryption:
The VMs needs to be power off to apply the VM encryption storage policy.
vCenter supports only one (1) external KMS at a time, and the IP address of the KMS cannot be altered once configured.
3.0 Configure Fortanix DSM
A Fortanix DSM service must be configured, and the URL must be accessible. To create a Fortanix DSM account and group, refer to the following sections:
3.1 Signing Up
To get started with the Fortanix Data Security Manager (DSM) cloud service, you must register an account at <Your_DSM_Service_URL>. For example, https://eu.smartkey.io.
For detailed steps on how to set up the Fortanix DSM, refer to the User's Guide: Sign Up for Fortanix Data Security Manager SaaS documentation.
3.2 Creating an Account
Access the <Your_DSM_Service_URL> on the web browser and enter your credentials to log in to the Fortanix DSM.

Figure 1: Logging In
3.3 Creating a Group
Perform the following steps to create a group in the Fortanix DSM:
Click the Groups menu item in the DSM left navigation bar and click the + button on the Groups page to add a new group.
Figure 2: Add Groups
On the Adding new group page, enter the following details:
Title: Enter a title for your group.
Description (optional): Enter a short description for the group.
Click the SAVE button to create the new group.
The new group has been added to the Fortanix DSM successfully.
3.4 Creating an Application
Perform the following steps to create an application (app) in the Fortanix DSM:
Click the Apps menu item in the DSM left navigation bar and click the + button on the Apps page to add a new app.
Figure 3: Add Application
On the Adding new app page, enter the following details:
App name: Enter the name of your application.
Interface (optional): Select the KMIP option as interface type from the drop down menu.
ADD DESCRIPTION (optional): Enter a short description for the application.
Authentication method: Select the default API Key as the method of authentication from the drop down menu. For more information on these authentication methods, refer to User's Guide: Authentication documentation.
Assigning the new app to groups: Select the group created in Section 3.3: Creating a Group from the list.
Click the SAVE button to add the new application.
The new application has been added to the Fortanix DSM successfully.
3.5 Copying the App UUID
Perform the following steps to copy the app UUID from the Fortanix DSM:
Click the Apps menu item in the DSM left navigation bar and click the app created in Section 3.4: Creating an Application to go to the detailed view of the app.
On the INFO tab, click the VIEW API KEY DETAILS button.
Click the USERNAME/PASSOWORD tab.
From the Credentials Details dialog box, copy the Username (app UUID) and Password of the app to use it later Section 4.1: Configure Fortanix DSM in vCenter.
4.0 Configure vCenter Key Management Settings
You may configure Fortanix DSM as an external KMS in vCenter using the vSphere Client UI.
4.1 Configure Fortanix DSM in vCenter
Log in to vCenter using vSphere Client UI.
Navigate to Configure → Key Providers.
Figure 4: vSphere Client UI
In the Key Management ADD STANDARD KEY PROVIDER form, enter the following details:
Name: Name of KMS - DSM
Address: Fortanix DSM IP address. In this case, app.<fortanix_dsm_url>.
Port: 5696
Username: Copy the value from Fortanix DSM app
Password: Copy the value from Fortanix DSM app
Figure 5: Key Management Configuration Details
Figure 6: Username and Password from Data Security Manager
Figure 7: Key Management Configuration Details
Click Add Key Provider.
Establish trust between Fortanix DSM and vCenter by clicking Establish Trust → Make vCenter Trust KMS. Click TRUST.
Figure 8: Establish Trust
4.2 Expose VM Encryption Policy to Tenants
As a service provider, make sure you expose the VM encryption storage policy to the tenants.
Log in to the VMware Cloud Director provider portal.
Click Organization VDCs and enable VM encryption policy for the organization.

Figure 9: Enable VM Encryption Policy
4.3 Tenants Apply VM Encryption Storage Policy to VM
The tenants can apply the VM encryption storage policy to the VM(s) they want to encrypt.
The Tenants can log in to the VMware Cloud Director tenant portal.
Click the VM that needs to be encrypted. Make sure that the VM is powered off.
Figure 10: Tenant Portal
Apply VM Encryption storage policy to the VM.
Figure 11: Apply VM Encryption Policy
Figure 12: VM Encryption Policy
4.4 Verification of Fortanix DSM
Service providers can log in to Fortanix DSM to see the logs of the connection and the key created as well.

Figure 13: Connection Logs

Figure 14: Encryption Key Created