This article describes the steps to integrateFortanix-Data-Security-Manager (DSM) with Oracle Key Vault (OKV).
It also contains the information that a user requires to:
Configure Fortanix DSM
Initialize HSM
Set credential
Perform HSM reverse migration
Perform OKV backup and restoration
The Oracle Key Vault (OKV) uses an Oracle Database to store the client/endpoint keys. This Oracle DB repository inside OKV uses Transparent Data Encryption (TDE) and the TDE master key is stored in a local file wallet on the OKV server. In a standard OKV configuration, the OKV TDE key is stored inside a password-protected wallet. With Fortanix HSM integration, the OKV wallet password will be encrypted using a key that will be stored in Fortanix HSM as a root of trust.
2.0 Prerequisites
Ensure the following:
Fortanix DSM minimum version - 4.2
Fortanix PKCS#11 library
Oracle Key Vault 21.3
Oracle Key Vault should be able to reach Fortanix DSM
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.
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.
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.
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 Applicationto 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 as it will be used later in the PKCS#11 configuration file.
Figure 4: App UUID and Password
4.0 Create Fortanix Directories
Perform the following steps:
Log in to Oracle Key Vault Server and switch to the root directory.
Create the following directory structures under /opt.
Perform the following steps to verify that the Fortanix DSM endpoint is reachable from the OKV server:
Run the following curl command to verify the SSL certificate.
#curl -v <endpoint_url>
NOTE
If the SSL verification is failing, you should upload the endpoint rootCA certificate to /opt/fortanix/conf directory and add the following parameter to the pkcs11.conf file.
ca_certs_file = "/opt/fortanix/conf/rootCA.pem"
You can verify the certificate check using the following command.
Fortanix Data Security Manager (DSM) is the world’s first cloud service secured with Intel® SGX. With Fortanix DSM, you can securely generate, store, and use cryptographic keys and certificates, as well as other secrets such as passwords, API keys, tokens, or any blob of data. Your business-critical applications and containers can integrate with Fortanix DSM using legacy cryptographic interfaces (PKCS#11, CNG, and JCE) or using the native Fortanix DSM RESTful interface.