Database
IBM Db2
Enable and test encryption in IBM Db2
4min
perform the following tasks to enable and test encryption in db2 create the kmip configuration file configure db2 to use the {{ch}} create the encrypted database and verify the integration create the configuration file perform the following steps to create the kmip configuration file open a text editor and create a kmip cfg configuration file with the following details version=1 product name=other allow key insert without keystore backup=true ssl keydb=c \path\to\clientkeydb p12 ssl keydb stash=c \path\to\clientkeydb sth ssl kmip client certificate label=\<label of client certificate> allow noncritical basic constraint=false master server host=\<ip address of cryptohub> master server kmip port=\<kmip port> the following sample shows an example configuration file version=1 product name=other allow key insert without keystore backup=true ssl keydb=c \certs\clientkeydb p12 ssl keydb stash=c \certs\clientkeydb sth ssl kmip client certificate label=ibmdb2 allow noncritical basic constraint=false master server host=10 0 8 79 master server kmip port=5696 save the file to your working folder (such as c \certs ) configure db2 perform the following steps to configure db2 to use the {{ch}} open the db2 command line processor run the following commands to point to the {{ch}} by using the configuration file db2 => update dbm cfg using keystore location c \certs\kmip cfg db2 => update dbm cfg using keystore type kmip run the following commands to bounce the database db2 => db2stop db2 => db2start create the encrypted database perform the following steps to create the encrypted database and verify the integration in the ibm db2 command line processor, run the following commands to create an encrypted database db2 => create db fxencdb encrypt replace fxencdb with the desired database name note that database names must not be longer than eight characters after running the preceding command, the master encryption key generates inside the ibm db2 service on the {{ch}} the following message displays after the process successfully completes db20000i the create database command completed successfully verify the database has been successfully encrypted by executing the following command db2 => get db cfg for fxencdb ensure that the encrypted database configuration parameter is set to yes in the command response verify the creation of the key on the {{ch}} by going to key management > keys the hsm protected key generated for ibm db2 is similar to the following naming scheme db2 sysgen db2 fxencdb 2024 04 18 11 47 35 4a9769c4 for more information on configuring a kmip key store with ibm db2, consult the ibm documentation https //www ibm com/docs/en/db2/11 5?topic=keystore kmip configuration file#t0062025