1.0 Introduction
This article describes how to integrate Fortanix Data Security Manager (DSM) with Venafi. The integration describes steps to add Fortanix as an HSM connector within Venafi and then leverage that connector to secure the Venafi Trust Protection (TPP) database with an AES256 key stored within the Fortanix HSM system. It also contains the information that a user requires to:
- Create a group, app, security object in Fortanix DSM.
- Install Fortanix DSM on Venafi TPP.
- Configure Venafi.
2.0 Integration Steps
2.1 Create an App and Security Object in Fortanix DSM
Perform the following steps:
- Log in to the Fortanix DSM UI.
- Click the Groups tab. On the Groups page, click the create a new group icon to create a new group.
Figure 1: Create a Group in DSM - Click the Apps tab. On the Apps page, click the create a new app icon to create a new app.
Enter the following information:- App name: This is the name to identify the EJBCA app.
- Authentication method: This can be left at the default API Key.
- Group: This is a logical construct that will contain keys created and owned by the Venafi cluster.
- Click Save to complete creating the application.
Figure 2: Create New App - Note down the application’s API Key to use later.
- Go to the detailed view of an app and click the COPY API KEY as shown below.
Figure 3: Copy App API Key
- Go to the detailed view of an app and click the COPY API KEY as shown below.
- Create a security object in the group created above.
Figure 4: Create Security Object
2.2 Install Fortanix DSM on Venafi TPP
Perform the following steps:
- Log in to Venafi TPP node using the service account assigned to Venafi.
- Install the Fortanix DSM Client software:
- Download the MSI from the URL
https://support.fortanix.com/hc/en-us/articles/360018084132-CNG-EKM - Run the MSI package and accept the default values.
- Download the MSI from the URL
- Configure the Fortanix DSM Client:
- Navigate to the Fortanix default client directory -
C:\Program Files\Fortanix\KMSClient
- Execute the following commands to configure the Fortanix DSM client:
FortanixKmsClientConfig.exe user --api-endpoint [Fortanix DSM URL]
FortanixKmsClientConfig.exe user --api-key - An example of the Fortanix DSM URL is: https://amer.smartkey.iod
- Navigate to the Fortanix default client directory -
For more details refer to the Developer’s Guide: Microsoft CNG Key Storage Provider.
2.3 Configure Venafi
Perform the following steps:
- Open the Venafi Configuration Console.
Figure 5: Venafi Configuration Console - Click Connectors under the Venafi Configuration menu to create a Connector.
Figure 6: Create Connector - Under Connectors, click Create HSM Connector.
Figure 7: Create HSM Connector - Enter the following information:
- Name – (user defined)
-
Cryptoki Dll Path – Enter the PCKS#11 path
Default - C:\Program Files\Fortanix\KmsClient\FortanixKmsPkcs11.dll
- Select Slot as 0 from the drop down menu.
- Select User Type as Crypto Officer (User) from the drop down menu.
- In the Pin field, enter the Fortanix API Key for Venafi that you copied in Section 2.1.
- Click Verify.
Figure 8: Create New HSM Connector
2.3.1 Create a new AES256 key in Venafi
Perform the following steps:
- Click New Key to create a new key.
- In the Create New HSM Key window, enter a Name for the key and click Create.
Figure 9: Create AES256 Key - Click the Create button again to complete the key creation process.
Figure 10: Key Created - Now, verify that the new HSM configuration is listed under Encryption Connectors.
Figure 11: HSM Configuration Listed
2.3.2 Re-Encrypt the Venafi TPP Database with Fortanix HSM Key
Perform the following steps:
- Select “Rotate TPP System Protection Key”.
Figure 12: Rotate TPP System Protection Key - Enter a New key name and select the HSM Connector. Click Rotate.
Figure 13: Rotate the Key
Comments
Please sign in to leave a comment.