小编Gur*_*tap的帖子

错误:1407742E:SSL例程:SSL23_GET_SERVER_HELLO:tlsv1警报协议版本

我正在使用旧的Macbook运行Osx Lion 10.7.5,这是它支持的最高升级.在运行git clone时出现此错误.

Veers-Macbook:~ Veer$ git clone https://github.com/heroku/python-getting-started.git
Cloning into 'python-getting-started'...
fatal: unable to access 'https://github.com/heroku/python-getting-started.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Run Code Online (Sandbox Code Playgroud)

根据其他类似问题,我的系统详情如下:

Veers-Macbook:~ Veer$ which git
/usr/local/git/bin/git

Veers-Macbook:~ Veer$ git --version
git version 2.3.5

Veers-Macbook:~ Veer$ git config http.sslVersion
tlsv1.2
Run Code Online (Sandbox Code Playgroud)

我跑了这两个命令

    git config --global --unset http.sslVersion
    git config --global --add http.sslVersion tlsv1.2
Run Code Online (Sandbox Code Playgroud)

验证我运行配置文件

 Veers-Macbook:~ Veer$ git config --global --list
 user.name=Gurupratap Matharu
 user.email=gurupratap.matharu@gmail.com
 credential.helper=osxkeychain
 core.excludesfile=/Users/admin/.gitignore
 mergetool.sublime.cmd=subl -w $MERGED
 mergetool.sublime.trustexitcode=false
 merge.tool=sublime
 alias.gui=!sh -c '/usr/local/git/libexec/git-core/git-gui'
 http.sslversion=tlsv1.2
Run Code Online (Sandbox Code Playgroud)

看起来配置文件有http tlsv1.2,但错误仍然存​​在.

你能指导我怎么解决这个问题.我唯一的目标是通过命令行使用github.

macos openssl

5
推荐指数
1
解决办法
3064
查看次数

标签 统计

macos ×1

openssl ×1