GaussDB(DWS) supports connections in SSL authentication mode so that data transmitted between the GaussDB(DWS) client and the database can be encrypted. The SSL mode delivers higher security than the common mode. By default, the SSL function is enabled in a cluster to allow SSL or non-SSL connections from the client. For security purposes, you are advised to enable SSL connection. If you want to use SSL connection, enable Require SSL Connection for the cluster.
On the Security Settings page of the cluster, you can enable or disable Require SSL Connection.
The following parts are included in this section:
By default, Configuration Status is set to Synchronized, which indicates that the latest database result is displayed.
indicates that the server requires SSL connection.
indicates that no SSL connection is required (default).
The system automatically saves the SSL connection settings. On the Security Settings page, Configuration Status is Applying. After Configuration Status changes to Synchronized, the settings have been saved and taken effect.
Whether the client uses the SSL encryption connection mode and whether to verify the server certificate depend on client parameter sslmode and server (cluster) parameters ssl and require_ssl. The parameters are described as follows:
The combinations of client parameter sslmode and server parameters ssl and require_ssl are as follows.
ssl (Server) |
sslmode (Client) |
require_ssl (Server) |
Result |
---|---|---|---|
on |
disable |
on |
The server requires SSL, but the client disables SSL for the connection. As a result, the connection cannot be set up. |
disable |
off |
The connection is not encrypted. |
|
allow |
on |
The connection is encrypted. |
|
allow |
off |
The connection is not encrypted. |
|
prefer |
on |
The connection is encrypted. |
|
prefer |
off |
The connection is encrypted. |
|
require |
on |
The connection is encrypted. |
|
require |
off |
The connection is encrypted. |
|
verify-ca |
on |
The connection is encrypted and the server certificate is verified. |
|
verify-ca |
off |
The connection is encrypted and the server certificate is verified. |
|
off |
disable |
on |
The connection is not encrypted. |
disable |
off |
The connection is not encrypted. |
|
allow |
on |
The connection is not encrypted. |
|
allow |
off |
The connection is not encrypted. |
|
prefer |
on |
The connection is not encrypted. |
|
prefer |
off |
The connection is not encrypted. |
|
require |
on |
The client requires SSL, but SSL is disabled on the server. Therefore, the connection cannot be set up. |
|
require |
off |
The client requires SSL, but SSL is disabled on the server. Therefore, the connection cannot be set up. |
|
verify-ca |
on |
The client requires SSL, but SSL is disabled on the server. Therefore, the connection cannot be set up. |
|
verify-ca |
off |
The client requires SSL, but SSL is disabled on the server. Therefore, the connection cannot be set up. |