This topic describes how to make data transmission more secure by configuring Secure Sockets Layer (SSL) encryption. You must enable SSL encryption and install SSL certificates that are issued by certificate authorities (CAs) in the required applications. SSL is used to encrypt connections at the transport layer and enhance the security and integrity of the transmitted data. However, SSL encryption increases the round-trip time.
Background information
SSL is developed by Netscape to allow encrypted communication between a web server and a browser. SSL supports various encryption algorithms, such as RC4, MD5, and RSA. The Internet Engineering Task Force (IETF) upgraded SSL 3.0 to Transport Layer Security (TLS). However, the term "SSL encryption" is still used in the industry. In this topic, SSL encryption refers to TLS encryption.
Usage notes
- The validity period of an SSL certificate is one year. You must renew an SSL certificate before the SSL certificate expires. In addition, you must download the required SSL certificate file and configure the SSL certificate again after you renew the SSL certificate. Otherwise, clients that are connected to your cluster over encrypted connections are disconnected. For more information about how to renew an SSL certificate, see Renew an SSL certificate.
- SSL encryption may cause a sharp increase in CPU utilization. We recommend that you enable SSL encryption only if you want to encrypt the connections that are established to the public endpoint of your cluster. In most cases, connections that are established to the internal endpoint of your cluster are secure and do not require SSL encryption.
- After you change the endpoint for which SSL encryption is enabled, the SSL certificate is automatically renewed and the cluster is restarted. Proceed with caution.
- After you renew an SSL certificate, the cluster is automatically restarted. Proceed with caution.
- To enable SSL encryption, the endpoint of the PolarDB cluster must be less than 64 characters in length. For more information about how to modify an endpoint, see Configure PolarProxy.
Enable SSL encryption and download an SSL certificate
Configure an SSL certificate
After you enable SSL encryption, you must configure an SSL certificate. The SSL certificate is required for your application or client to connect to your PolarDB cluster. In this section, MySQL Workbench and Navicat are used as examples to describe how to configure an SSL certificate. If you want to use other applications or clients, see the related instructions.
Perform the following steps to configure an SSL certificate on MySQL Workbench:
Perform the following steps to configure an SSL certificate on Navicat:
Renew an SSL certificate
Enable automatic certificate rotation
- On the SSL Settings tab, click Advanced Settings.
- In the Advanced Settings dialog box, select On for Automatic Certificate Rotation and click Confirm.
Disable SSL encryption
- After you disable SSL encryption, the cluster is restarted. We recommend that you perform this operation during off-peak hours.
- After SSL encryption is disabled, the performance of your cluster is improved but data security is compromised. We recommend that you disable SSL encryption only in secure environments.
- Log on to the PolarDB console.
- In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
- Find the cluster and click the cluster ID.
- In the left-side navigation pane, choose .
- On the SSL Settings tab, turn off SSL to disable SSL encryption.
- In the message that appears, click OK.
Related API operations
Operation | Description |
---|---|
DescribeDBClusterSSL | Queries the SSL encryption settings of a specified PolarDB cluster. |
ModifyDBClusterSSL | Enables SSL encryption, disables SSL encryption, or renews the SSL certificate for a specified PolarDB cluster. |