Determining the TLS mode of the database
When you configure OpenText™ Analytics Database for TLS through the Management Console, you must configure the security mode to match what the database is configured to require: server mode or mutual mode.
To determine the TLS mode for existing sessions, query the SESSIONS system table:
=> SELECT session_id, user_name, ssl_state FROM sessions;
session_id | user_name | ssl_state
---------------------------------+-----------+-----------
v_vmart_node0001-333611:0x1ab | dbadmin | mutual
To determine the database's client-server TLS configuration, query the TLS_CONFIGURATIONS system table for the "server":
=> SELECT name, certificate, ca_certificate, mode FROM tls_configurations WHERE name = 'server';
name | certificate | ca_certificate | mode
--------+------------------+---------------------+-----------
server | server_cert | ca_cert,ica_cert | VERIFY_CA
(1 row)
The "mode" can be one of the following, in ascending security:
-
DISABLE: Disables TLS. All other options for this parameter enable TLS. -
ENABLE: Enables TLS. The database does not check client certificates. -
TRY_VERIFY: Attempts to establish a TLS connection if either of the following is true:-
the remote host presents a valid certificate
-
the remote host does not present a certificate
If the remote host presents an invalid certificate, the connection is rejected.
-
-
VERIFY_CA: The connection succeeds only if the database verifies that the remote host's certificate is issued by a trusted CA. If the remote host does not present a certificate, or the certificate is invalid, the connection is rejected. -
VERIFY_FULL: Connection succeeds if the database verifies that the remote host's certificate is from a trusted CA and the certificate'scn(Common Name) orsubjectAltNameattribute matches the hostname or IP address of the remote host.Note that for client certificates,
cnis used for the username, sosubjectAltNamemust match the hostname or IP address of the remote host.
Mutual mode corresponds to TRY_VERIFY or higher, which indicates that the database is in mutual mode. In mutual mode, the database sends its server certificate to the client for verification and uses the CA certificates (in this case, "ca_cert" and "ica_cert") to verify client certificates.
In contrast, a server mode configuration (which doesn't verify client certificates) might have the following TLS configuration instead:
=> SELECT name, certificate, ca_certificate, mode FROM tls_configurations WHERE name = 'server';
name | certificate | ca_certificate | mode
--------+------------------+---------------------+-----------
server | server_cert | | ENABLE
(1 row)