【git学习】git clone 出错 error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
一、错误描述使用git 命令 clone 一个git 仓库的时候报错,如下所示:C:\Users\000>git clone https://hub.fastgit.org/githubhaohao/NDK_OpenGLES_3_0.gitCloning into 'NDK_OpenGLES_3_0'...fatal: unable to access 'https://hub.fastgi
一、错误描述
使用git 命令 clone 一个git 仓库的时候报错,如下所示:
C:\Users\000>git clone https://hub.fastgit.org/githubhaohao/NDK_OpenGLES_3_0.git
Cloning into 'NDK_OpenGLES_3_0'...
fatal: unable to access 'https://hub.fastgit.org/githubhaohao/NDK_OpenGLES_3_0.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
二、分析错误
2.1 查看http.sslVersion版本
http.sslVersion版本 为 tlsv1.0 如下所示:
C:\Users\000>git config http.sslVersion
tlsv1.0
We will then restore support for the deprecated algorithms and provide a two week grace period for these systems to upgrade their libraries before we disable support for the deprecated algorithms permanently on February 22, 2018.
As noted above, the vast majority of traffic should be unaffected by this change. However, there are a few remaining clients that we anticipate will be affected. Fortunately, the majority of clients can be updated to work with TLSv1.2.
总之一句话,升级到TLSv1.2
版本去吧!
三、解决错误
添加如下两条配置
C:\Users\000>git config --global --unset http.sslVersion
C:\Users\000>git config --global --add http.sslVersion tlsv1.2
C:\Users\000>git config --global --add http.sslbackend openssl
然后重新git clone 项目即可,如下所示:
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
所有评论(0)