Enable TLS
Shows how to enable TLS.
You can use TLS authentication for one or more of the following types of communication:
- Communication from clients (applications) to your database
- Communication from your database to other clusters for replication using Replica Of
- Communication to and from your database to other clusters for synchronization using Active-Active
Enable TLS for client connections
To enable TLS for client connections:
-
From your database's Security tab, select Edit.
-
In the TLS - Transport Layer Security for secure connections section, make sure the checkbox is selected.
-
In the Apply TLS for section, select Clients and databases + Between databases.
-
Select Save.
To enable mutual TLS for client connections:
-
Select Mutual TLS (Client authentication).
-
For each client certificate, select + Add certificate, paste or upload the client certificate, then select Done.
If your database uses Replica Of, you also need to add the syncer certificates for the participating clusters. See Enable TLS for Replica Of cluster connections for instructions.
-
You can configure Additional certificate validations to further limit connections to clients with valid certificates.
Additional certificate validations occur only when loading a certificate chain that includes the root certificate and intermediate CA certificate but does not include a leaf (end-entity) certificate. If you include a leaf certificate, mutual client authentication skips any additional certificate validations.
-
Select a certificate validation option.
Validation option Description No validation Authenticates clients with valid certificates. No additional validations are enforced. By Subject Alternative Name A client certificate is valid only if its Common Name (CN) matches an entry in the list of valid subjects. Ignores other Subject
attributes.By full Subject Name A client certificate is valid only if its Subject
attributes match an entry in the list of valid subjects. -
If you selected No validation, you can skip this step. Otherwise, select + Add validation to create a new entry and then enter valid
Subject
attributes for your client certificates. AllSubject
attributes are case-sensitive.Subject attribute
(case-sensitive)Description Common Name (CN) Name of the client authenticated by the certificate (required) Organization (O) The client's organization or company name Organizational Unit (OU) Name of the unit or department within the organization Locality (L) The organization's city State / Province (ST) The organization's state or province Country (C) 2-letter code that represents the organization's country You can only enter a single value for each field, except for the Organizational Unit (OU) field. If your client certificate has a
Subject
with multiple Organizational Unit (OU) values, press theEnter
orReturn
key after entering each value to add multiple Organizational Units.Breaking change: If you use the REST API instead of the Cluster Manager UI to configure additional certificate validations, note that
authorized_names
is deprecated as of Redis Enterprise v6.4.2. Useauthorized_subjects
instead. See the BDB object reference for more details.
-
-
Select Save.
By default, Redis Enterprise Software validates client certificate expiration dates. You can use rladmin
to turn off this behavior.
rladmin tune db < db:id | name > mtls_allow_outdated_certs enabled
Enable TLS for Active-Active cluster connections
You cannot enable or turn off TLS after the Active-Active database is created, but you can change the TLS configuration.
To enable TLS for Active-Active cluster connections:
-
During database creation, expand the TLS configuration section.
-
Select On to enable TLS.
-
Click Create.
If you also want to require TLS for client connections, you must edit the Active-Active database configuration after creation. See Enable TLS for client connections for instructions.
Enable TLS for Replica Of cluster connections
To enable TLS for Replica Of cluster connections:
-
For each cluster hosting a replica:
-
From the Security tab of the Replica Of source database, select Edit.
-
In the TLS - Transport Layer Security for secure connections section, make sure the checkbox is selected.
-
In the Apply TLS for section, select Between databases only.
-
Select Mutual TLS (Client authentication).
-
Select + Add certificate, paste or upload the syncer certificate, then select Done.
Repeat this process, adding the syncer certificate for each cluster hosting a replica of this database.
-
(Optional) To require TLS for client connections, change Apply TLS for to Clients and databases + Between databases and add client certificates.
-
Select Save.