{"id":1325,"date":"2024-01-30T16:31:17","date_gmt":"2024-01-30T08:31:17","guid":{"rendered":"https:\/\/www.lategege.com\/?p=1325"},"modified":"2024-01-30T17:16:06","modified_gmt":"2024-01-30T09:16:06","slug":"apisix-https%e8%af%81%e4%b9%a6%e9%83%a8%e5%88%86%e5%ae%a2%e6%88%b7%e7%ab%af%e9%aa%8c%e8%af%81%e5%87%ba%e9%94%99%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.lategege.com\/?p=1325","title":{"rendered":"Apisix https\u8bc1\u4e66\u90e8\u5206\u5ba2\u6237\u7aef\u9a8c\u8bc1\u51fa\u9519\u95ee\u9898"},"content":{"rendered":"<p>\u5728\u4f7f\u7528apisix\u7f51\u5173\u90e8\u7f72\u8bc1\u4e66\u540e\uff0c\u53d1\u73b0\u90e8\u5206\u5ba2\u6237\u7aef\u62a5\u8bc1\u4e66\u9a8c\u8bc1\u5931\u8d25\u7684\u60c5\u51b5\uff0cios,mac\u7aef\u5374\u6ca1\u6709\u8fd9\u79cd\u60c5\u51b5\uff0candroid\u7aef\u51fa\u73b0\u4e86\u8fd9\u79cd\u60c5\u51b5\uff0c\u540c\u6837\u7684\u8bc1\u4e66\uff0c\u5728nginx\u4e0b\u5374\u6ca1\u6709\u95ee\u9898\u3002<br \/>\nwireshark\u6293\u5305\u663e\u793a\u4e09\u6b21\u63e1\u624b\u6210\u529f\u540e\uff0c\u5efa\u7acbTLS\u8fde\u63a5\uff0c\u5ba2\u6237\u7aef\u53d1\u4e86client hello,\u670d\u52a1\u7aef\u56de\u590dserver hello\u5df2\u7ecf\u5411\u5ba2\u6237\u7aef\u4f20\u8f93\u4e86\u8bc1\u4e66\u540e\uff0c\u5ba2\u6237\u7aef\u76f4\u63a5\u56de\u590d\u5e76\u5173\u95ed\u4e86tcp\u8fde\u63a5\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/img.lategege.com:30443\/images\/2024\/01\/30\/e9f6cde4dbdb.png\" alt=\"file\" \/><br \/>\n\u51fa\u73b0\u95ee\u9898\u7684\u662fandroid\u5ba2\u6237\u7aef\uff0c\u4f7f\u7528\u7684\u662fflutter dio\u5e93\uff0c\u76ee\u524d\u8fd8\u6ca1\u6392\u67e5\u51fa\u95ee\u9898\u7684\u6839\u672c\u539f\u56e0\uff0c\u7f51\u4e0a\u6709\u8bf4\u662f\u5ba2\u6237\u7aef\u6ca1\u6cd5SNI\u4fe1\u606f\uff0c\u4f46\u662f\u6211\u8fd9\u8fb9\u4e0d\u662f\uff0c\u6211\u8fd9\u8fb9\u6293\u5305\u662f\u5e26\u4e86\u8fd9\u4e2a\u4fe1\u606f\u7684\u3002\u8fd9\u79cd\u95ee\u9898\u591a\u534a\u662fapisix\u548c\u5ba2\u6237\u7aef\u534f\u5546\u51fa\u4e86\u95ee\u9898\uff0c\u4f46\u662f\u7a76\u7adf\u5728\u54ea\u91cc\u51fa\u9519\u7684\u8fd8\u9700\u8981\u8fdb\u4e00\u6b65\u6392\u67e5\uff0c\u5f53\u7136\uff0c\u8fd9\u79cd\u95ee\u9898\u89e3\u51b3\u4e5f\u4e0d\u662f\u4e0d\u80fd\u89e3\u51b3\uff0c\u5ba2\u6237\u7aef\u76f4\u63a5\u4fe1\u4efb\u5373\u53ef\uff0c\u4f46\u5f3a\u8feb\u75c7\u53d7\u4e0d\u4e86\uff0c\u6700\u597d\u662f\u5728apisix\u7aef\u4fee\u6539\u3002<\/p>\n<pre><code>\u5ba2\u6237\u7aef\u62a5 Handshake error unable to get local issues<\/code><\/pre>\n<hr \/>\n<p>\u5df2\u627e\u5230\u539f\u56e0:<br \/>\n\u5f15\u8d77\u8fd9\u6b21\u95ee\u9898\u7684\u539f\u56e0\u662fflutter\u7f51\u7edc\u8bf7\u6c42\u5e93\u9a8c\u8bc1\u8bc1\u4e66\u7684\u65f6\u5019\u7f3a\u5c11\u8bc1\u4e66\u94fe\u4e2d\u7684CA\u8bc1\u4e66\uff0c\u95ee\u9898\u7684\u6839\u672c\u53ef\u80fd\u662fflutter android\u7aef\u8bf7\u6c42\u5e93\u9a8c\u8bc1\u8bc1\u4e66\u7684\u65f6\u5019\uff0c\u5e76\u672a\u83b7\u53d6\u5230android\u624b\u673a\u4e2d\u7684\u5b8c\u6574\u8bc1\u4e66\u4fe1\u606f\uff0c\u4ea6\u6216\u8005\u662f\u6839\u672c\u5c31\u6ca1\u6709\u53bb\u83b7\u53d6\u5b8c\u6574\u8bc1\u4e66\u4fe1\u606f\uff0c\u603b\u4e4b\u662fflutter\u7f51\u7edc\u8bf7\u6c42\u5e93\u5728android\u7aef\u7684\u8bc1\u4e66\u6821\u9a8c\u5b58\u5728\u5904\u7406\u5931\u5f53\u95ee\u9898\uff0c\u56e0\u4e3a\u624b\u673a\u6d4f\u89c8\u5668\u8bc1\u4e66\u6821\u9a8c\u6ca1\u95ee\u9898\uff0c\u8bf4\u660e\u7cfb\u7edf\u5fc5\u7136\u6709\u5185\u7f6e\u6839\u8bc1\u4e66\u53ef\u4ee5\u6821\u9a8c\u6211\u4eec\u7684\u7f51\u7ad9\u8bc1\u4e66\u3002<br \/>\n\u6b64\u95ee\u9898\u5728github\u4e5f\u6709\u4eba\u63d0\u51fa\uff1a<a href=\"https:\/\/github.com\/flutter\/flutter\/issues\/50699\">https:\/\/github.com\/flutter\/flutter\/issues\/50699<\/a><br \/>\n\u89e3\u51b3\u65b9\u6848\u5c31\u662fapisix\u4e0a\u4f20\u516c\u94a5\u522b\u53ea\u4e0a\u4f20\u7f51\u7ad9\u7684\u516c\u94a5\uff0c\u800c\u662f\u5c06CA\u8bc1\u4e66\u6253\u5305\u8fdb\u7f51\u7ad9\u516c\u94a5\u8bc1\u4e66\uff0c\u5f62\u6210\u5b8c\u6574\u7684fullchain.cer\u4f5c\u4e3a\u516c\u94a5\u8bc1\u4e66\u63d0\u4ea4\uff0c\u79c1\u94a5\u4e0d\u9700\u8981\u53d8\u5316\u3002<\/p>\n<p>\u7531\u4e8e\u6211\u4f7f\u7528\u7684\u662flet's encrypt\u7533\u8bf7\u7684\uff0c\u4f7f\u7528acme.sh\u7533\u8bf7\u7684\u65f6\u5019\u5b83\u5df2\u7ecf\u4e0b\u53d1\u4e86fullchain.cer\u4e86\uff0c\u6240\u4ee5\u6211\u5c31\u4e0d\u9700\u8981\u5236\u4f5c\uff0c\u53ea\u8981\u5c06\u7f51\u7ad9\u7684xxx.cer\u6362\u6210\u8fd9\u4e2a\u5df2\u7ecf\u5305\u542b\u4e86ca.cer\u7684fullchain.cer\u5373\u53ef\u3002<\/p>\n<p>\u603b\u7ed3\uff1a\u82e5\u6ca1\u6709https\u76f8\u5173\u77e5\u8bc6\u4f5c\u6307\u5f15\uff0c\u8fd9\u79cd\u95ee\u9898\u6839\u672c\u6ca1\u529e\u6cd5\u770b\u6e05\u672c\u8d28\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4f7f\u7528apisix\u7f51\u5173\u90e8\u7f72\u8bc1\u4e66\u540e\uff0c\u53d1\u73b0\u90e8\u5206\u5ba2\u6237\u7aef\u62a5\u8bc1\u4e66\u9a8c\u8bc1\u5931\u8d25\u7684\u60c5\u51b5\uff0cios,mac\u7aef\u5374\u6ca1\u6709\u8fd9\u79cd\u60c5\u51b5\uff0candr [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[432],"class_list":["post-1325","post","type-post","status-publish","format-standard","hentry","category-1","tag-apisix-https"],"views":1873,"_links":{"self":[{"href":"https:\/\/www.lategege.com\/index.php?rest_route=\/wp\/v2\/posts\/1325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lategege.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lategege.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lategege.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lategege.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1325"}],"version-history":[{"count":3,"href":"https:\/\/www.lategege.com\/index.php?rest_route=\/wp\/v2\/posts\/1325\/revisions"}],"predecessor-version":[{"id":1328,"href":"https:\/\/www.lategege.com\/index.php?rest_route=\/wp\/v2\/posts\/1325\/revisions\/1328"}],"wp:attachment":[{"href":"https:\/\/www.lategege.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lategege.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lategege.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}