小樱 发表于 2016/6/10 16:05

github报错* error setting certificate verify locations: 错误设置证书验证位置的解决方法

2016-06-10 15:59:01.4506|INFO|thread: 1|DashboardViewModel|Received request to clone: 'https://github.com/1265578519/mirrors.git'
2016-06-10 15:59:03.8301|INFO|thread: 1|RepositoryModel|Cloning repo https://github.com/1265578519/mirrors.git
2016-06-10 15:59:03.8301|INFO|thread: 1|GitLfsSmudgeTail|Setting Git LFS smudge progress environment variable
2016-06-10 15:59:03.8301|INFO|thread: 1|RepositoryModel|Cloning 'https://github.com/1265578519/mirrors.git' to 'mirrors' in directory 'C:\Users\梦梦\Documents\GitHub
2016-06-10 15:59:03.8451|INFO|thread: 1|GitEnvironment|Process set up with this SSH Agent info: 117152:/tmp/ssh-s4Udb1GcvHAt/agent.114824
2016-06-10 15:59:03.8451|INFO|thread: 1|GitEnvironment|PATH is C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\cmd;C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\usr\bin;C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\usr\share\git-tfs;E:\新建文件夹\GitHub V3.1.1.4 完整绿色版 离线安装包\GitHub;C:\Users\梦梦\AppData\Local\GitHub\lfs-amd64_1.2.0;C:\Windows\System32;C:\Windows\Microsoft.NET\Framework\v4.0.30319\;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64
2016-06-10 15:59:03.8451|INFO|thread: 1|ProcessWrapper|Starting: Process - FileName: 'C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\cmd\git.exe', Args: 'clone --progress --recursive--"https://github.com/1265578519/mirrors.git" "mirrors" ', Working Directory: C:\Users\梦梦\Documents\GitHub
2016-06-10 15:59:03.8541|INFO|thread:19|DashboardViewModel|Selected repository '1265578519/mirrors'
2016-06-10 15:59:03.9292|INFO|thread:19|DashboardViewModel|Took 0ms to Create RepositoryViewModel for location C:\Users\梦梦\Documents\GitHub\mirrors
2016-06-10 15:59:04.2995|INFO|thread:26|GitLfsSmudgeTail|Cleaning up Git LFS smudge progress environment variable
2016-06-10 15:59:04.2995|WARN|thread: 1|StandardUserErrors|Showing user error Please check your log file for more details, or contact out support team if you are still having problems.
GitHub.IO.ProcessException: 15:59:03.910189 git.c:351               trace: built-in: git 'clone' '--progress' '--recursive' '--' 'https://github.com/1265578519/mirrors.git' 'mirrors'
15:59:03.956233 run-command.c:336       trace: run_command: 'git-remote-https' 'origin' 'https://github.com/1265578519/mirrors.git'
Cloning into 'mirrors'...
* Couldn't find host github.com in the _netrc file; using defaults
* timeout on name lookup is not supported
*   Trying 192.30.252.122...
* Connected to github.com (192.30.252.122) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* error setting certificate verify locations:
CAfile: C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\mingw32/usr/ssl/certs/ca-bundle.crt
CApath: none
* Closing connection 0
fatal: unable to access 'https://github.com/1265578519/mirrors.git/': error setting certificate verify locations:
CAfile: C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\mingw32/usr/ssl/certs/ca-bundle.crt
CApath: none
2016-06-10 15:59:04.3225|ERROR|thread: 1|WebBrowserExtensions|Unable to resolve PresentationSource for browser
2016-06-10 15:59:04.3736|ERROR|thread:11|ComparisonGraph|JavaScript Alert from the comparison graph: http://github-app/: TypeError: Cannot read property 'selectCommit' of null
2016-06-10 15:59:04.9085|INFO|thread:44|BackgroundFetcher|Got a refresh period for 1265578519/mirrors of 300 seconds


根据日志,看到错误是* error setting certificate verify locations: ,翻译后就是错误设置证书验证位置
上面日志说明,文件路径是CAfile: C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\mingw32/usr/ssl/certs/ca-bundle.crt

然后我们进入C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\mingw32\发现并没有usr文件夹,我们手动创建个usr,然后把ssl文件夹复制一份到usr即可解决

页: [1]
查看完整版本: github报错* error setting certificate verify locations: 错误设置证书验证位置的解决方法