Skip to main content
This section shows you how to enable and test encryption for this Db2 integration.

Import the certificate

Perform the following steps to import the signed client certificate:
1
Put the signed client certificate PEM file into the working folder you created (for example, C:\Certs).
2
Rename the client certificate file to client.crt.
3
Run the following command to import the signed client certificate into the local keystore:
Shell

Create the configuration file

Perform the following steps to create the KMIP configuration file:
1
Open a text editor and create the kmip.cfg configuration file similar to the following template with your details:
None
The following example shows a sample configuration file:
None
2
Save the file to your working folder (such as C:\Certs).

Configure Db2

Perform the following steps to configure Db2 to use the KMES Series 3:
1
Open the Db2 Command Line Processor.
2
Run the following commands to point to the KMES Series 3 by using the configuration file:
Sql
3
Run the following commands to stop and start the database:
Sql

Create an encrypted database

Perform the following steps to create an encrypted database and verify the integration:
1
In the IBM Db2 Command Line Processor, run the following command to create an encrypted database, replacing fxencdb with your database name (no more than eight characters):
Sql
The master encryption key generates on the KMES Series 3, and you see the following message after the process successfully completes:
Sql
2
Verify the database encrypted successfully by executing the following command:
Sql
The Encrypted Database configuration parameter is set to YES in the command response.
3
Verify the creation of the key on the KMES Series 3 by navigating to Key Management > Keys. A HSM Protected key should have been generated for IBM Db2, similar to the following example:
None
For more information on configuring a KMIP key store with IBM Db2, consult the IBM documentation.