{"id":488,"date":"2022-03-20T16:43:33","date_gmt":"2022-03-20T08:43:33","guid":{"rendered":"https:\/\/cabit.top\/?p=488"},"modified":"2022-03-20T16:43:34","modified_gmt":"2022-03-20T08:43:34","slug":"github%e6%8a%a5%e9%94%99openssl-ssl_connect-connection-was-reset-in-connection-to-github-com443%e7%bb%88%e6%9e%81%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/cabit.top\/?p=488","title":{"rendered":"Github\u62a5\u9519OpenSSL SSL_connect: Connection was reset in connection to github.com:443\u7ec8\u6781\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"\n<p>\u4eca\u5929\u5728\u4f7f\u7528git\u547d\u4ee4\u8fdb\u884cpush\u548cpull\u65f6\uff0c\u51fa\u73b0\u5982\u4e0b\u62a5\u9519\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>fatal: unable to access &#8216;https:\/\/github.com\/wxler\/test.git\/&#8217;: OpenSSL SSL_connect: Connection was reset in connection to github.com:443<br><br><strong>\u6211\u67e5\u4e86\u5f88\u591a\u79cd\u65b9\u6848\uff0c\u4e0b\u9762\u5fc5\u6709\u4e00\u4e2a\u65b9\u6cd5\u80fd\u591f\u89e3\u51b3\u3002<\/strong><\/p><\/blockquote>\n\n\n\n<p>\u65b9\u6848\u4e00<br>\u5728git bash\u547d\u4ee4\u884c\u4e2d\u4f9d\u6b21\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>git config &#8211;global http.sslBackend &#8220;openssl&#8221;<\/li><li>git config &#8211;global http.sslCAInfo &#8220;C:\\Program Files\\Git\\mingw64\\ssl\\cert.pem&#8221;<\/li><\/ol>\n\n\n\n<p>\u6ce8\u610f\u4e0a\u9762\u7b2c\u4e8c\u4e2a\u547d\u4ee4\uff0c\u8def\u5f84\u8981\u6362\u6210git\u5b89\u88c5\u7684\u8def\u5f84\u3002<\/p>\n\n\n\n<p>\u65b9\u6848\u4e8c<br>\u5982\u679c\u4f60\u5f00\u542f\u4e86VPN\uff0c\u5f88\u53ef\u80fd\u662f\u56e0\u4e3a\u4ee3\u7406\u7684\u95ee\u9898\uff0c\u8fd9\u65f6\u5019\u8bbe\u7f6e\u4e00\u4e0bhttp.proxy\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n\n\n\n<p>\u4e00\u5b9a\u8981\u67e5\u770b\u81ea\u5df1\u7684VPN\u7aef\u53e3\u53f7\uff0c\u5047\u5982\u4f60\u7684\u7aef\u53e3\u53f7\u662f7890\uff0c\u5728git bash\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>git config &#8211;global http.proxy 127.0.0.1:7890<\/li><li>git config &#8211;global https.proxy 127.0.0.1:7890<\/li><\/ol>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u4e4b\u524dgit\u4e2d\u5df2\u7ecf\u8bbe\u7f6e\u8fc7\u4e0a\u8ff0\u914d\u7f6e\uff0c\u5219\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u53d6\u6d88\u518d\u8fdb\u884c\u914d\u7f6e\u5373\u53ef\uff1a<\/p>\n\n\n\n<p>git config &#8211;global &#8211;unset http.proxy<br>git config &#8211;global &#8211;unset https.proxy<br><br>\u4e0b\u9762\u662f\u51e0\u4e2a\u5e38\u7528\u7684git\u914d\u7f6e\u67e5\u770b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<p>git config &#8211;global http.proxy #\u67e5\u770bgit\u7684http\u4ee3\u7406\u914d\u7f6e<br>git config &#8211;global https.proxy #\u67e5\u770bgit\u7684https\u4ee3\u7406\u914d\u7f6e<br>git config &#8211;global -l #\u67e5\u770bgit\u7684\u6240\u6709\u914d\u7f6e<br><br>\u65b9\u6848\u4e09<br>\u8fd8\u6709\u4e00\u4e2a\u60c5\u51b5\uff0c\u662f\u4f60\u7684VNP\u4ee3\u7406\u670d\u52a1\u5668\u8282\u70b9\u6709\u95ee\u9898\uff0c\u6709\u65f6\u5019\u66f4\u6362\u4e00\u4e2a\u7ed3\u70b9\u5c31\u597d\u4e86\u3002\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u642d\u5efa\u7684\u4ee3\u7406\u670d\u52a1\u5668\u3002<\/p>\n\n\n\n<p>\u535a\u4e3b\u63d0\u793a\uff0c\u4e00\u5b9a\u8981\u79d1\u5b66\u4e0a\u7f51\uff0c\u5408\u7406\u4e0a\u7f51\u3002<\/p>\n\n\n\n<p>\u65b9\u6848\u56db<br>\u6253\u5f00\u4e00\u4e2a\u65b0\u7684git bash\u7ec8\u7aef\uff0c\u5c31\u6ca1\u95ee\u9898\u4e86\u3002\u8fd9\u4e2a\u53ef\u80fd\u662f\u5f53\u524dgit\u7684\u4f1a\u8bdd\u6709\u5173\u3002<br>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3aCSDN\u535a\u4e3b\u300c\u96f7\u6069Layne\u300d\u7684\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faaCC 4.0 BY-SA\u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u53ca\u672c\u58f0\u660e\u3002<br>\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/blog.csdn.net\/qq_37555071\/article\/details\/114260533<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728\u4f7f\u7528git\u547d\u4ee4\u8fdb\u884cpush&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-488","post","type-post","status-publish","format-standard","hentry","category-others"],"_links":{"self":[{"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/posts\/488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cabit.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=488"}],"version-history":[{"count":1,"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions"}],"predecessor-version":[{"id":489,"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions\/489"}],"wp:attachment":[{"href":"https:\/\/cabit.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cabit.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cabit.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}