4、参考上面的文档配置,启动传输加密,使用2881端口 --ssl可以登录,切换为2883端口提示ERROR 1045 (42000): Access denied for user ‘TEST’@‘xxx.xxx.xxx.xxx’ (using password: YES)
ODP配置, 相关证书也拷贝至obproxy的安装目录下的certs
MySQL [oceanbase]> show proxyconfig like '%enable_%ssl%';
+-------------------+-------+-------------------------------------------------------------+-------------+---------------+
| name | value | info | need_reboot | visible_level |
+-------------------+-------+-------------------------------------------------------------+-------------+---------------+
| enable_server_ssl | True | if enabled, proxy will try best to connect server whith ssl | false | SYS |
| enable_client_ssl | True | if enabled, proxy will try best to connect client with ssl | false | SYS |
+-------------------+-------+-------------------------------------------------------------+-------------+---------------+
MySQL [oceanbase]> SELECT CONFIG_VAL FROM proxyconfig.security_config where app_name='odp4';
+----------------+
| CONFIG_VAL |
+----------------+
| SSL INFO VALID |
+----------------+
MySQL [(none)]> select * from proxyconfig.security_config where app_name='odp4';
+----------------+
| CONFIG_VAL |
+----------------+
| SSL INFO VALID |
+----------------+
[root@server062 certs]# mysql -h10.0.0.63 -uu_x509@obmysql#obv4 -P2883 -p'abc@ABC#123' -c -A oceanbase --ssl -e "\s" |egrep "SSL"
SSL: Cipher in use is ECDHE-RSA-AES256-GCM-SHA384