Database
IBM Db2

Enable and test encryption in IBM Db2

4min

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

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 KMIP configuration file

1

Open a text editor and create the kmip.cfg configuration file similar to the following template with your details:

Text


The following example shows a sample configuration file:

Text

2

Save the file to your working folder (such as C:\Certs).

Configure Db2 to use the KMES Series 3

1

Open the Db2 Command Line Processor.

2

Run the following commands to point to the by using the configuration file:

SQL

3

Run the following commands to stop and start the database:

SQL


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 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 should be set to YES in the command response.

3

Verify the creation of the key on the by navigating to Key Management > Keys. A HSM Protected key should have been generated for IBM Db2, similar to the following example:

Text


For more information on configuring a KMIP key store with IBM Db2, consult the IBM documentation.