Xcode 无法验证服务器“github.com”的身份,Xcode

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12099727/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:18:54  来源:igfitidea点击:

Xcode can't verify the identity of the server "github.com", Xcode

xcodegit

提问by Crystal

enter image description here

在此处输入图片说明

Sorry for the dumb question, but I've been getting this on Xcode. I'm not sure if it's because I updated to Mountain Lion or not. Every time I click continue, I just get the same message and it never proceeds. I am able to pull or push from the command line however. Does anyone know how to solve this? Thanks!

对不起,这个愚蠢的问题,但我一直在 Xcode 上得到这个。我不确定是不是因为我更新到 Mountain Lion。每次我点击继续时,我都会收到相同的消息,但它永远不会继续。但是,我可以从命令行拉或推。有谁知道如何解决这个问题?谢谢!

采纳答案by MonsieurDart

Just click "Show Certificate", unfold the disclosure arrow and set the "Trust" dropdown option menu to "Always Trust". Accept and re-enter your password if asked. It should be fine now. (Sorry for not being more precise, but I don't have the Certificate window under my eyes right now.)

只需单击“显示证书”,展开披露箭头并将“信任”下拉选项菜单设置为“始终信任”。如果询问,请接受并重新输入您的密码。现在应该没问题了。(抱歉没有说得更准确,但我现在眼睛下面没有证书窗口。)

回答by VonC

None of the certificates in the CA chain for GitHub appears to have just expired or be closed to expire.

GitHub 的 CA 链中的所有证书似乎都没有过期或即将过期。

This article(on rail app, but also relevant here) suggests:

这篇文章(关于铁路应用程序,但在这里也相关)建议:

$ cd /opt/local/etc/openssl
$ sudo curl -O http://curl.haxx.se/ca/cacert.pem
$ sudo mv cacert.pem cert.pem
$ setenv SSL_CERT_FILE /opt/local/etc/openssl/cacert.pem

回答by user6969

Anyone facing this issue, quit your proxy and try again.

遇到此问题的任何人,请退出您的代理并重试。