LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

GitHub上面拉取代码实在是太慢了,一开始设置了https代理(代理服务本身完全没问题)
出现下来的报错,SSL证书有问题

rikasai@huacainoMacBook-Pro Go % export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;

rikasai@huacainoMacBook-Pro Go % git clone https://github.com/birdayz/kaf.git KafCmd
Cloning into 'KafCmd'...
fatal: unable to access 'https://github.com/birdayz/kaf.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

解决方法
把https代理改成socks代理
vim ~/.gitconfig
加入

 [http]
      proxy = socks5://127.0.0.1:1080
image.png

速度起飞!!!

rikasai@huacainoMacBook-Pro Go % git clone https://github.com/birdayz/kaf.git testKak
Cloning into 'testKak'...
remote: Enumerating objects: 1413, done.
remote: Counting objects: 100% (1413/1413), done.
remote: Compressing objects: 100% (1026/1026), done.
remote: Total 5845 (delta 452), reused 1047 (delta 297), pack-reused 4432
Receiving objects: 100% (5845/5845), 18.87 MiB | 2.36 MiB/s, done.
Resolving deltas: 100% (2359/2359), done.

推荐阅读更多精彩内容