SVN 证书信任错误与 XCode 4.2 或 Coda,但不是命令行或 svnX

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8467526/
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-14 22:43:39  来源:igfitidea点击:

SVN certificate trust error with XCode 4.2 or Coda, but not with command-line or svnX

xcodesvnxcode4.2coda

提问by dms-dc

I just got a new Mac (with Lion) and am setting everything up, but I am stuck on this SVN certificate trust error for my repositories on Assembla.

我刚买了一台新 Mac(带有 Lion)并且正在设置所有东西,但是我在 Assembla 上的存储库中遇到了这个 SVN 证书信任错误。

The most common solution seems to be to move to Terminal and perform some svn operation on my working copy there, then respond to permanently trust the certificate when prompted.

最常见的解决方案似乎是移动到终端并在那里对我的工作副本执行一些 svn 操作,然后在出现提示时响应永久信任证书。

Here is where I am stuck. With the Terminal, I never get a certificate trust prompt! I can happily list, commit, check out a new copy, anything, no problem. With svnX, again, no problem . Neither way am I ever prompted to trust the certificate.

这是我被困的地方。使用终端,我从未收到证书信任提示!我可以愉快地列出、提交、检查新副本,任何事情,没问题。再次使用 svnX,没问题。我从来没有被提示信任证书。

But, with XCode 4.2 or Coda, I get stuck on the certificate trust error. I've tried removing anything in the keychain related to svn or assembla, doesn't help. I've tried browing to my repository in Safari, and again I can log in and am never given a certificate prompt.

但是,使用 XCode 4.2 或 Coda,我陷入了证书信任错误。我试过删除钥匙串中与 svn 或 assembla 相关的任何东西,没有帮助。我曾尝试在 Safari 中浏览我的存储库,但我可以再次登录,但从未收到证书提示。

I am utterly baffled. If anyone has any ideas, please help! Thanks!

我完全不知所措。如果有人有任何想法,请帮助!谢谢!

Coda gives me this: svn: OPTIONS of 'https://subversion.assembla.com/svn/my/repo/path': Server certificate verification failed: issuer is not trusted (https://subversion.assembla.com)

Coda 给了我这个:svn:'https://subversion.assembla.com/svn/my/repo/path'的选项:服务器证书验证失败:发行者不受信任(https://subversion.assembla.com)

And XCode gives me this:

XCode 给了我这个:

Error validating server certificate for 'https://subversion.assembla.com:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: *.assembla.com
 - Valid: from Thu, 24 Mar 2011 19:30:40 GMT until Sun, 24 Mar 2013 19:30:40 GMT
 - Issuer: 07969287, http://certificates.godaddy.com/repository, GoDaddy.com, Inc., Scottsdale, Arizona, US
 - Fingerprint: ae:b0:b6:94:14:5f:4b:28:d2:82:68:ae:e9:18:85:b3:ea:36:ee:f2
(R)eject, accept (t)emporarily or accept (p)ermanently? 
svn: OPTIONS of 'https://[email protected]/svn/my/repo/path': Server
 certificate verification failed: issuer is not trusted (https://subversion.assembla.com)

回答by mjmdavis

You need to make sure you use the svn binary in the Developer Tools package. If you go to the directory under version control and type

您需要确保使用 Developer Tools 包中的 svn 二进制文件。如果您转到版本控制下的目录并键入

/Developer/usr/bin/svn up

You should be prompted to accept the cert, press p to accept permanently and then xcode should work.

应该会提示您接受证书,按 p 永久接受,然后 xcode 应该可以工作。

On newer versions of XCode 4 which come as an appbundle, try this instead:

在作为 appbundle 的较新版本的 XCode 4 上,试试这个:

/Applications/Xcode.app/Contents/Developer/usr/bin/svn up

If the Xcode appbundle is elsewhere, just edit the path accordingly.

如果 Xcode appbundle 在别处,只需相应地编辑路径。

回答by dms-dc

Ok, I finally stumbled into a fix, out of desperation as I as exploring moving to Git and moving to Bitbucket from Assembla.

好吧,当我探索从 Assembla 迁移到 Git 并迁移到 Bitbucket 时,我终于偶然发现了一个修复程序,出于绝望。

I installed MacPorts and did the git-svn install (sudo port install git-core +svn). Once it was done (installing a lot more files than I expected, and taking a lot longer), I tried an initial clone of my svn repository into Git (as in: git svn clone myrepourl -T trunk -b branches -t tags).

我安装了 MacPorts 并进行了 git-svn 安装(sudo port install git-core +svn)。完成后(安装的文件比我预期的要多得多,而且花费的时间更长),我尝试将我的 svn 存储库初始克隆到 Git(如: git svn clone myrepourl -T trunk -b 分支 -t 标签) .

At long last, I was faced with the beautiful prompt asking me to accept Assembla's certificate, and one "p" later, Coda and XCode are now happily connected to subversion again. Now I can move to Git at my leisure instead of in a panic.

终于,我遇到了美丽的提示,要求我接受 Assembla 的证书,一个“p”之后,Coda 和 XCode 现在又愉快地连接到 Subversion。现在我可以在闲暇时转移到 Git,而不是在恐慌中。