- Oracle Database 12c: https://docs.oracle.com/database/121/ASOAG/configuring-transparent-dataencryption.htm
- A standard implementation of Oracle Database running on a server or desktop
- An Oracle Database implementation running in a Docker container.
Standard implementation
Perform the following steps to implement Oracle Database with the standard method:Perform one of the following options for the TDE Master Encryption Key:
- Migrate a previously configured TDE Master Encryption Key by referring to this article: docs.oracle.com/database/121/ASOAG/managing-keystore-and-tde-master-encryption-key.htm#GUID-4335220F-49FF-40BC-9EB0-21442608F436.
- Create the TDE Master Encryption Key by using the password of the identity that was created on the Vectera Plus, by running the following command:
Sql
If the Master Encryption Key creation succeeds, you see the following message:
None
If the database contains columns encrypted with a public key, the columns are decrypted and reencrypted with the Oracle table key, which is encrypted and decrypted with the AES symmetric key generated by HSM-based transparent data encryption.
Docker container implementation
Perform the following steps to implement Oracle Database in a Docker container:The steps outlined in this section describe how to configure the Futurex PKCS #11 (FXPKCS11) library to work with an Oracle Database Docker container. For instructions on how to build and run Oracle Database in a Docker container, refer to the Oracle documentation.
On the host computer that runs the Oracle Database container, go to the location of the Oracle Database private key file,
tls_skey.pem.Open a terminal and run the following command to make the Oracle Database private key readable and executable for all users:
Shell
Set the OpenSSL version to match your container in the OPENSSL_VERSION environment variable.Depending on your database version, run one of the following commands:
- If you use Oracle Database 19c and the official Oracle Database container images repository on GitHub (https://github.com/oracle/docker-images/blob/main/OracleDatabase), the container is based on Oracle Linux 7, which is OpenSSL 1.0-based. In that case, you need to run the following command:
Shell
- If you use Oracle Database running in a container that is OpenSSL 1.1-based, you need to run the following command:
Shell
Download the Futurex PKCS #11 (FXPKCS11) library from the Futurex Portal, depending on your OpenSSL version:
- If your container is OpenSSL 1.0-based, download the
fxpkcs11-redhat-4.xx-xxxx.tarfile. - If your container is OpenSSL 1.1-based, download the
fxpkcs11-redhat8-4.xx-xxxx.tarfile.
Open the FXPKCS11 configuration file,
fxpkcs11.cfg, in a text editor and modify the connection details in the **<HSM>
** section to enable the FXPKCS11 library to connect to the Vectera Plus. The following configuration example shows part of the fxpkcs11.cfg file:None
| Field | Description |
|---|---|
| <SLOT> | Leave it set to the default value of 0. |
| <LABEL> | Leave it set to the default value of Futurex. |
| <CRYPTO-OPR> | Specify the name of the identity created for the application partition. |
| <CRYPTO-OPR-PASS> | Specify the password of the identity configured in the <CRYPTO-OPR> field. You can use this to log the application into the HSM automatically if necessary. |
| <ADDRESS> | Specify the IP address of the HSM to which the PKCS #11 library should connect. |
| <PROD-PORT> | Set the port number of the HSM that the FXPKCS11 library should connect to. |
| <PROD-TLS-ENABLED> | Set the field to YES. |
| <PROD-TLS-ANONYMOUS> | Defines whether the FXPKCS11 library authenticates to the server. |
| <PROD-TLS-KEY> | Set the location of the client private key. Supported formats for the TLS private key include the following values:
Because the <PROD-TLS-KEY> field in this example defines the PKCS #12 file, you don’t need to define the signed client cert with the <PROD-TLS-CERT> tag, nor the CA certificates with one or more instances of the <PROD-TLS-CA> tag. |
| <PROD-TLS-KEY-PASS> | Set the password of the PKCS #12 file, if necessary. |
| <FX-LOAD-BALANCE> | If you use a Guardian to manage HSM devices in a cluster, set this field to YES. If you don’t use a Guardian, set it to NO |
Run the following command to start the Oracle Database container and bind-mount all of the FXPKCS11 files needed for FXPKCS11 to connect to the Vectera Plus.
You must run this command from the same directory that stores the extracted
fxpkcs11 directory.If the TLS certificates for authentication with the Vectera Plus are not stored in the
/home/oracle/pki directory on your system, modify the third -v flag in your command to reflect the location.Shell
The preceding command takes 10 to 20 minutes to complete, depending on your system resources.
After the Oracle Database container is up and running, run the following command to connect to the container file system:
Shell
Modify the
/opt/oracle/product/19c/dbhome_1/network/admin/sqlnet.ora file to the following and save it:Shell

