{"id":222,"date":"2020-06-10T10:28:00","date_gmt":"2020-06-10T02:28:00","guid":{"rendered":"http:\/\/www.gbase8.cn\/?p=222"},"modified":"2022-09-06T18:22:04","modified_gmt":"2022-09-06T10:22:04","slug":"gbase-8a%e9%9b%86%e7%be%a4ssl%e9%85%8d%e7%bd%ae-odbc","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/222","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u96c6\u7fa4SSL\u914d\u7f6e-ODBC"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2aa12f97933\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2aa12f97933\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/222\/#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\" >\u914d\u7f6e\u6587\u4ef6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/222\/#%E6%B5%8B%E8%AF%95\" >\u6d4b\u8bd5<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\"><\/span>\u914d\u7f6e\u6587\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>&#91;root@localhost ~]# cat \/etc\/odbc.ini\r\n&#91;test]\r\n#Driver = GBase 8a MPP Cluster ODBC 8.3 Driver\r\nDriver = GBase ODBC 8.3 Driver\r\nDATABASE = testdb\r\nSERVER = 192.168.174.61\r\nUID = gbase\r\nPASSWORD = gbase20110531\n\r\nsslca=\/usr\/local\/ssl_client\/ca-cert.pem\r\nsslcert=\/usr\/local\/ssl_client\/client-cert.pem\r\nsslkey=\/usr\/local\/ssl_client\/client-key.pem\r\nsslverfy=1\r\nOption=3<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B5%8B%E8%AF%95\"><\/span>\u6d4b\u8bd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u901a\u8fc7isql, \u6267\u884c\u5982\u4e0b\u547d\u4ee4\u53ef\u4ee5\u770b\u5230SSL\u76f8\u5173\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>show session status like '%ssl%';\n\nshow session status like '%ssl%';\n+--------------------------------+-------+\n| Variable_name                  | Value |\n+--------------------------------+-------+\n| Com_show_processlist           | 0     |\n| Ssl_accept_renegotiates        | 0     |\n| Ssl_accepts                    | 0     |\n| Ssl_callback_cache_hits        | 0     |\n| Ssl_cipher                     |       |\n| Ssl_cipher_list                |       |\n| Ssl_client_connects            | 0     |\n| Ssl_connect_renegotiates       | 0     |\n| Ssl_ctx_verify_depth           | 0     |\n| Ssl_ctx_verify_mode            | 0     |\n| Ssl_default_timeout            | 0     |\n| Ssl_finished_accepts           | 0     |\n| Ssl_finished_connects          | 0     |\n| Ssl_session_cache_hits         | 0     |\n| Ssl_session_cache_misses       | 0     |\n| Ssl_session_cache_mode         | NONE  |\n| Ssl_session_cache_overflows    | 0     |\n| Ssl_session_cache_size         | 0     |\n| Ssl_session_cache_timeouts     | 0     |\n| Ssl_sessions_reused            | 0     |\n| Ssl_used_session_cache_entries | 0     |\n| Ssl_verify_depth               | 0     |\n| Ssl_verify_mode                | 0     |\n| Ssl_version                    |       |\n+--------------------------------+-------+\n24 rows in set (Elapsed: 00:00:00.00)\n<\/code><\/pre>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u96c6\u7fa4SSL\u914d\u7f6e-ODBC<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[46,15],"class_list":{"0":"post-222","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-gbase8a","8":"tag-odbc","9":"tag-ssl"},"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":5,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":10558,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/222\/revisions\/10558"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}