Enable and test encryption in IBM Db2
This section shows you how to enable and test encryption for this Db2 integration.
Put the signed client certificate PEM file into the working folder you created (for example, C:\Certs).
Rename the client certificate file to client.crt.
Run the following command to import the signed client certificate into the local keystore:
Open a text editor and create the kmip.cfg configuration file similar to the following template with your details:
The following example shows a sample configuration file:
Save the file to your working folder (such as C:\Certs).
Open the Db2 Command Line Processor.
Run the following commands to point to the by using the configuration file:
Run the following commands to stop and start the database:
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):
The master encryption key generates on the and you see the following message after the process successfully completes:
Verify the database encrypted successfully by executing the following command:
The Encrypted Database configuration parameter should be set to YES in the command response.
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:
For more information on configuring a KMIP key store with IBM Db2, consult the IBM documentation.