Oracle Database New Encryption Setup: ezTLS

A new security feature , “ezTLS” has been introduced in Oracle AI Database 26ai Release Update 23.26.4 and Oracle Database 19c Release Update 19.33.

In this feature ,Oracle is mixing the advantages of simple implementation of network encryption while using TLS encryption protocol as there is no wallet management is required anymore unlike the traditional TLS through orapki method.

In traditional TLS setup some known challenges are faced by organizations such as: renewing certificates before they expire, revoke them when necessary, and managing the key store. In addition of managing the certificate on both the client/server sides.The following table summarizes the difference between ezTLS, One-Way TLS, and mTLS:

Image source courtsey: https://docs.oracle.com/en/database/oracle/oracle-database/26/dbseg/selecting-eztls-one-way-tls-or-mutual-tls.html

For compatibility and the following are the “minimum” versions required for drivers to work against the new feature:

JDBC: 23.26.4

python-oracledb (Thin mode): 26.1.0

OCI-C-based drivers 19.33 and 23.26.4Its important to note that with ezTLS you can use either TCP,TCPS, or both in your connection.

Let us perform a simulation….the following is a migration phased approach if you are migration from Native Network Encryption to ezTLS:

in sqlnet.ora file in your database server add the following line

SQLNET.ENCRYPTION_TYPES_SERVER = (EZTLS, AES256)

SQLNET.ENCRYPTION_SERVER = REQUIRED

SELECT network_service_banner FROM v$session_connect_info WHERE sid= sys_context(‘userenv’,’sid’);

SELECT

SYS_CONTEXT(‘USERENV’, ‘NETWORK_PROTOCOL’) AS network_protocol,

SYS_CONTEXT(‘USERENV’, ‘TLS_VERSION’) AS tls_version,

SYS_CONTEXT(‘USERENV’, ‘TLS_CIPHERSUITE’) AS tls_ciphersuite FROM dual;

Leave a Reply