Database
IBM Db2

Enable and test encryption in IBM Db2

3min

Perform the following tasks to enable and test encryption in Db2:

1 | Create the KMIP configuration file

1

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

Text


An example configuration file is as follows:

Text

2

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

2 | Configure Db2 to use the 

1

Open the Db2 Command Line Processor.

2

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

Text

3

Run the following commands to bounce the database:

Text


3 | Create the encrypted database and verify the integration

1

In the IBM Db2 Command Line Processor, run the following commands to create an encrypted database:

Text


Replace fxencdb with the desired database name. Note that database names can be a max of eight characters.

2

After running the above command, the master encryption key will be generated inside the IBM Db2 service on the .

The following message displays after the process successfully completes:

Text

3

Verify the database has been successfully encrypted by executing the following command:

Text


Ensure that the Encrypted Database configuration parameter is set to YES in the command response.

4

Verify the creation of the key on the by going to Key Management > Keys. The HSM Protected key generated for IBM DB2 is similar to the following naming scheme:

Text


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