tencent cloud

Tencent Cloud Distributed Cache (Redis OSS-Compatible)

Transport Layer Security (TLS) encryption

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-18 20:18:21
Diterjemahkan oleh AI

Scenarios

TLS (Transport Layer Security) encryption provides encryption protection for the data transmission links of Tencent Cloud Distributed Cache instances, preventing data from being eavesdropped on or tampered with during transmission between clients and instances, and meeting data transmission compliance requirements in scenarios such as finance, government, and enterprise.
This document describes how to enable TLS encryption, update certificates, modify the encryption mode, and download certificates in the console.
Note:
Enabling TLS access can ensure the security of data access and transmission, but it may slightly affect instance performance. It is recommended to enable TLS encryption only when encryption is required.
After TLS encryption is enabled, password-free access is not supported.
The creation, hosting, renewal, and expiration reminders of custom certificates are all provided by the SSL Certificates service.

Prerequisites

The instance is in the Running state.
Password-free access is not enabled for the instance. TLS encryption and password-free access are mutually exclusive. If password-free access is enabled, disable it first.
If you use a custom certificate, you must complete service authorization first. On first use, you must agree to create the service-linked role CRS_QCSLinkedRoleInSSLApply for Distributed Cache to authorize access to SSL Certificates cloud resources. Custom certificates support only the RSA and ECDSA certificate types.
To configure the forced encryption mode and specify a TLS version, the proxy version of the instance must be 5.8.31 or later.
Different encryption algorithms have different proxy version requirements: using the RSA algorithm requires proxy version 5.6.0 or later, and using the ECC algorithm requires proxy version 5.8.8 or later.

Encryption Mode Description

Encryption Mode
Description
Forced encryption
Only encrypted connections are allowed, and non-encrypted connections are forcibly disconnected.
Compatibility mode
Both encrypted and non-encrypted connections are supported.
Attention:
After forced encryption is enabled, non-encrypted connections are forcibly disconnected. It is recommended to change the configuration during off-peak hours.

Enabling TLS Encryption

1. Log in to the Distributed Cache console, click the target instance ID in the instance list, and go to the instance details page.
2. Select the TLS Encryption tab and click the switch to the right of TLS Encryption Status.
3. In the Enable TLS Encryption dialog box that appears, configure the parameters according to the following table. After confirming that they are correct, click OK.
Parameter
Description
Encryption Mode
You can select mandatory encryption or compatibility mode. Mandatory encryption allows only encrypted connections. Compatibility mode supports both encrypted and non-encrypted connections.
Certificate Source
You can select Tencent Cloud-provided or custom certificate. Creation, hosting, renewal, and expiration reminders for custom certificates are all provided by the SSL Certificates service.
Certificate Binding Address
You can select not bound to an address or other options. When not bound to an address is selected, the certificate works for both private and public networks. The client only verifies the certificate validity, which completely avoids connection failures caused by address changes.
TLS version
You can select a TLS version, with TLSv1.2 recommended. Connections using a version lower than the selected one will be rejected.
4. After TLS encryption is enabled, the TLS Encryption Status is displayed as Enabled, and the page displays the current encryption mode, certificate source, certificate binding address, certificate validity period, TLS version, and certificate validity.

Updating the Certificate

1. On the TLS Encryption tab of the instance details page, click Update Certificate to the right of Certificate Source.
2. In the Update Certificate dialog box that appears, configure the parameters according to the following table. After confirming that they are correct, click OK.
Attention:
Updating a certificate disconnects the TLS connections of all active clients. Clients can re-establish connections only after completing the certificate update. It is recommended to perform this operation during off-peak hours.
Note:
The creation, hosting, renewal, and expiration reminders of custom certificates are all provided by the SSL Certificates service.
The unified expiration date of certificates provided by Tencent Cloud is 2042-06-12. The system sends a notification 3 months before expiration, at which point you need to go to the console to update the certificate.
Parameter
Description
Current Certificate Source
Displays the current certificate source and cannot be modified.
New Certificate Source
You can select Tencent Cloud-provided or custom certificate.
Certificate Binding Address
You can select not bound to an address or other options. When not bound to an address is selected, the certificate works for both private and public networks. The client only verifies the certificate validity, which completely avoids connection failures caused by address changes.
TLS version
You can select a TLS version, with TLSv1.2 recommended. Connections using a version lower than the selected one will be rejected.

Modifying the Encryption Mode

1. On the TLS Encryption tab of the instance details page, click Modify to the right of Encryption Mode.
2. In the Modify Encryption Mode dialog box that appears, view the Current Mode, select Mandatory Encryption or Compatible Mode for Target Mode, and click OK.
Attention:
After forced encryption is enabled, non-encrypted connections are forcibly disconnected. It is recommended to change the configuration during off-peak hours.

Disabling TLS Encryption

1. On the TLS Encryption tab of the instance details page, click the switch to the right of TLS Encryption Status.
2. In the confirmation dialog box that appears, confirm the impact of disabling, and then click OK to disable TLS encryption.
Attention:
After TLS encryption is disabled, data transmission between clients and the instance will no longer be encrypted. Before performing this operation, confirm that your business no longer relies on encrypted connections.

Download Certificate

After TLS encryption is enabled, you can download the corresponding certificate based on its source for client connection verification.
Certificate source: Provided by Tencent Cloud: On the TLS Encryption tab of the instance details page, click Download CA Certificate to the right of Client Certificate to download the certificate.
Certificate source: Custom certificate: Go to the SSL Certificates console to download the corresponding certificate.

Related APIs

API Name
Capability Description
Enable TLS encryption and support features such as specifying the encryption mode, certificate source, certificate binding address, and TLS version.
Disable TLS encryption.
Query the TLS authentication information of the instance, including the enablement status, configuration status, and certificate address.
Update the TLS encryption configuration, including features such as the encryption mode, certificate source, certificate binding address, and TLS version.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan