Android Studio 无法访问'https:github.com/username/projectName.git/':SSL证书问题:证书链中的自签名证书

jogvjijk  于 2023-04-07  发布在  Android
关注(0)|答案(2)|浏览(126)

我试图从Github克隆一个项目,但我无法克隆它,因为我有这个错误无法访问:SSL证书问题:证书链中的自签名证书我可以从我的网络访问,并且我有证书。
在我的Android Studio或我的网络中是否有任何问题,因为我已经搜索了很多次,但还没有找到解决方案。

编辑这是我运行git config -l --show-origin命令后的Git配置值

C:\Users\ahmed.taha>git config -l --show-origin
file:C:/Program Files/Git/etc/gitconfig diff.astextplain.textconv=astextplain
file:C:/Program Files/Git/etc/gitconfig filter.lfs.clean=git-lfs clean -- %f
file:C:/Program Files/Git/etc/gitconfig filter.lfs.smudge=git-lfs smudge -- %f
file:C:/Program Files/Git/etc/gitconfig filter.lfs.process=git-lfs filter-process
file:C:/Program Files/Git/etc/gitconfig filter.lfs.required=true
file:C:/Program Files/Git/etc/gitconfig http.sslbackend=openssl
file:C:/Program Files/Git/etc/gitconfig http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
file:C:/Program Files/Git/etc/gitconfig core.autocrlf=true
file:C:/Program Files/Git/etc/gitconfig core.fscache=true
file:C:/Program Files/Git/etc/gitconfig core.symlinks=false
file:C:/Program Files/Git/etc/gitconfig pull.rebase=false
file:C:/Program Files/Git/etc/gitconfig credential.helper=manager

这里是我的.gitconfig文件

[diff "astextplain"]
    textconv = astextplain
[filter "lfs"]
    clean = git-lfs clean -- %f
    smudge = git-lfs smudge -- %f
    process = git-lfs filter-process
    required = true
[http]
    sslBackend = openssl
    sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
[core]
    autocrlf = true
    fscache = true
    symlinks = false
[pull]
    rebase = false
[credential]
    helper = manager
p5fdfcr1

p5fdfcr11#

我在Github上的这个答案中找到了解决方案
点击这里查看完美答案

57hvy0tb

57hvy0tb2#

git fetch是解决它的捷径

相关问题