{"id":216,"date":"2020-06-10T10:16:18","date_gmt":"2020-06-10T02:16:18","guid":{"rendered":"http:\/\/www.gbase8.cn\/?p=216"},"modified":"2020-11-19T08:37:06","modified_gmt":"2020-11-19T00:37:06","slug":"gbase-8a%e9%9b%86%e7%be%a4ssl%e9%85%8d%e7%bd%ae-%e5%91%bd%e4%bb%a4%e8%a1%8c%e5%ae%a2%e6%88%b7%e7%ab%afgccli","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/216","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u96c6\u7fa4SSL\u914d\u7f6e-\u5ba2\u6237\u7aefgccli"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>client\u914d\u7f6e<\/li><\/ul>\n\n\n\n<p>\u5c06server\u7aef\u751f\u6210\u7684ca-cert.pem\uff0cclient-req.pem\uff0cclient-key.pem\uff0cclient-cert.pem\u62f7\u8d1d\u5230client\u7aef\/usr\/local\/tmp\/ssl\/\u76ee\u5f55\uff08\u4ee5\u548c\u670d\u52a1\u7aef\u533a\u522b\uff09<\/p>\n\n\n\n<p>\u4fee\u6539\u5ba2\u6237\u7aef\u96c6\u7fa4\u5c42\u914d\u7f6e\u6587\u4ef6gbase_8a_gcluster.cnf\uff0c\u5728[client]\u91cc\u6dfb\u52a0ssl\u4fe1\u606f\uff0c\u4ee5\u8def\u5f84\/usr\/local\/tmp\/ssl\/\u4e3a\u4f8b\uff0c\u5982\u4e0b\u52a0\u7c97\u5b57\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-subtle-pale-blue-background-color has-background\"><tbody><tr><td>$ vi \/opt\/gcluster\/config\/gbase_8a_gcluster.cnf<br>[client]<br>port=5258<br>socket=\/tmp\/gcluster_5258.sock<br>connect_timeout=43200<br>default-character-set=gbk<br><strong>ssl-ca=\/usr\/local\/tmp\/ssl\/ca-cert.pem<br>ssl-cert=\/usr\/local\/tmp\/ssl\/client-cert.pem<br>ssl-key=\/usr\/local\/tmp\/ssl\/client-key.pem<\/strong><br>[gbased]<br>basedir = \/opt\/gcluster\/server<br>datadir = \/opt\/gcluster\/userdata\/gcluster<br>socket=\/tmp\/gcluster_5258.sock<br>pid-file = \/opt\/gcluster\/log\/gcluster\/gclusterd.pid<br>default-character-set=gbk<br>log-error<br>port=5258<br>core-file<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\uff0814\uff09\u901a\u8fc7client\u7aef\u8fdc\u7a0b\u8bbf\u95eeserver\uff0c\u6bd4\u5982\u7528ssluser\u7528\u6237\u767b\u9646192.168.134.131\u7684server\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-subtle-pale-blue-background-color has-background\"><tbody><tr><td>[gbase@localhost config]$ gccli -h192.168.134.131 -ussluser -p<br>Enter password:<br>GBase client 8.6.1.1 build 65111. Copyright (c) 2004-2016, GBase. All Rights Reserved.<br>gbase&gt;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u8fd0\u884cstatus\u547d\u4ee4\uff0cssl\u90e8\u5206\u663e\u793a\u6709\u201cCipher in use\u201d\uff0c\u8868\u793assl\u52a0\u5bc6\u8fde\u63a5\u6210\u529f\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-subtle-pale-blue-background-color has-background\"><tbody><tr><td>gbase&gt; status;<br>gccli Ver 14.14 Distrib 8.6.1.1, for unknown-linux-gnu (x86_64) using readline 6.0<br>Connection id: 13<br>Current database: information_schema<br>Current user: ssluser@192.168.134.132<br>SSL: Cipher in use is DHE-RSA-AES256-SHA<br>Current pager: stdout<br>Using outfile: ''<br>Using delimiter: ;<br>Server version: 8.6.1.1-65304<br>Protocol version: 10<br>Connection: 192.168.134.131 via TCP\/IP<br>Server characterset: utf8<br>Db characterset: utf8<br>Client characterset: utf8<br>Conn. characterset: utf8<br>TCP port: 5258<br>Uptime: Elapsed: 25:24:49.00<br>Threads: 4 Questions: 40 Slow queries: 2 Opens: 17 Flush tables: 1 Open tables: 10 Queries per second avg: 0.0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u4ee5\u4e0a\uff0c\u5982\u679cclient\u7aef\u6ca1\u6709\u8fdb\u884c\u4e0a\u8ff0\u914d\u7f6e\uff0c\u5219\u4ecd\u7136\u4f1a\u6309\u9ed8\u8ba4\u65b9\u5f0f\u8fde\u63a5server\uff0c\u4e5f\u5c31\u662f\u8bf4\u52a0\u5bc6\u8bbf\u95ee\u548c\u975e\u52a0\u5bc6\u8bbf\u95ee\uff0c\u5bf9\u96c6\u7fa4\u800c\u8a00\uff0c\u4e0d\u662f\u4e92\u65a5\u7684\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3a2\u4e2a\u9009\u9879\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u96c6\u7fa4SSL\u914d\u7f6e-\u5ba2\u6237\u7aefgccli<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[15],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-ssl"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/216","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=216"}],"version-history":[{"count":3,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":2050,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/216\/revisions\/2050"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}