Database
Oracle Database TDE (19c)

Appendix: Migrate from a software keystore to an HSM keystore

4min

This section provides instructions about migrating a preexisting software keystore to an HSM keystore.

Preparation

To perform this process, enable the following command on the role you created for the integration:

Command

Description



GPED

General Purpose Encryption and Decryption



Migrate the keystore

Perform the following steps to migrate a software keystore to a HSM keystore:

1

Connect to your database as the sysdba user:

Shell

2

Configure the Wallet Root parameter to point to the libfxpkcs11.so file:

SQL

3

Stop and restart the database:

SQL

4

Configure the TDE_CONFIGURATION parameter for using an HSM:

SQL

5

Stop and restart the database:

SQL

6

Open the HSM KeyStore by using the identity password created on the HSM:

SQL

7

Change back to the software keystore wallet location:

SQL

8

Stop and restart the database:

SQL

9

Configure the TDE_CONFIGURATION parameter for FILE:

SQL

10

Stop and restart the database:

SQL

11

Open the software keystore:

SQL

12

Add the HSM identity password as a secret to the Software Keystore:

SQL

13

Alter the software keystore password to match the hsm_identity_pass to convert a software keystore to open with the HSM keystore:

SQL


sw_keystore_pass and the hsm_identity_pass are now the same.

14

Create an autologin and specify the software keystore by using the keystore location:

SQL

15

Switch the TDE_CONFIGURATION parameter to HSM and FILE:

SQL

16

Stop and restart the database:

SQL

17

Confirm that both the FILE and HSM keystores are open with no master key for the HSM keystore:

SQL


You should see an output similar to the following:

SQL

18

Migrate the software keystore to the HSM keystore:

SQL

19

Switch the TDE_CONFIGURATION to HSM and confirm that you can still decrypt your database with just the HSM Keystore. Confirm that the keys are present on the HSM as well.

SQL