南大通用GBase 8a集群SSL配置-ODBC

配置文件

[root@localhost ~]# cat /etc/odbc.ini
[test]
#Driver = GBase 8a MPP Cluster ODBC 8.3 Driver
Driver = GBase ODBC 8.3 Driver
DATABASE = testdb
SERVER = 192.168.174.61
UID = gbase
PASSWORD = gbase20110531

sslca=/usr/local/ssl_client/ca-cert.pem
sslcert=/usr/local/ssl_client/client-cert.pem
sslkey=/usr/local/ssl_client/client-key.pem
sslverfy=1
Option=3

测试

通过isql, 执行如下命令可以看到SSL相关内容

show session status like '%ssl%';

show session status like '%ssl%';
+--------------------------------+-------+
| Variable_name                  | Value |
+--------------------------------+-------+
| Com_show_processlist           | 0     |
| Ssl_accept_renegotiates        | 0     |
| Ssl_accepts                    | 0     |
| Ssl_callback_cache_hits        | 0     |
| Ssl_cipher                     |       |
| Ssl_cipher_list                |       |
| Ssl_client_connects            | 0     |
| Ssl_connect_renegotiates       | 0     |
| Ssl_ctx_verify_depth           | 0     |
| Ssl_ctx_verify_mode            | 0     |
| Ssl_default_timeout            | 0     |
| Ssl_finished_accepts           | 0     |
| Ssl_finished_connects          | 0     |
| Ssl_session_cache_hits         | 0     |
| Ssl_session_cache_misses       | 0     |
| Ssl_session_cache_mode         | NONE  |
| Ssl_session_cache_overflows    | 0     |
| Ssl_session_cache_size         | 0     |
| Ssl_session_cache_timeouts     | 0     |
| Ssl_sessions_reused            | 0     |
| Ssl_used_session_cache_entries | 0     |
| Ssl_verify_depth               | 0     |
| Ssl_verify_mode                | 0     |
| Ssl_version                    |       |
+--------------------------------+-------+
24 rows in set (Elapsed: 00:00:00.00)