XCode 4.2 或 Coda 出现 SVN 证书信任错误,但命令行或 svnX 则不然
我刚买了一台新 Mac(带有 Lion)并正在设置一切,但我在 Assembla 上的存储库遇到了这个 SVN 证书信任错误。
最常见的解决方案似乎是移动到终端并在我的工作副本上执行一些 svn 操作,然后在出现提示时响应永久信任证书。
这就是我被困住的地方。使用终端,我从未收到证书信任提示!我可以愉快地列出、提交、检查新副本,任何事情都没有问题。再次使用 svnX,没问题。无论哪种方式,我都不会被提示信任该证书。
但是,使用 XCode 4.2 或 Coda,我遇到了证书信任错误。我尝试删除钥匙串中与 svn 或 assembla 相关的任何内容,但没有帮助。我尝试在 Safari 中浏览我的存储库,并且再次可以登录,但从未出现证书提示。
我完全困惑了。如果有人有任何想法,请帮忙!谢谢!
科达给了我这个: svn: 'https://subversion.assembla.com/svn/my/repo/path' 的选项: 服务器证书验证失败: 颁发者不受信任 (https://subversion.assembla.com)
并且 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)
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.
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.
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.
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.
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)
And XCode gives me this:
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要确保使用开发人员工具包中的 svn 二进制文件。如果您转到版本控制下的目录并键入
You should be suggest to Accept the cert, 按 p 永久接受,然后 xcode 应该可以工作。
在以应用程序包形式提供的较新版本的 XCode 4 上,请尝试以下操作:
如果 Xcode 应用程序包位于其他位置,只需相应地编辑路径即可。
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
You should be prompted to accept the cert, press p to accept permanently and then xcode should work.
On newer versions of XCode 4 which come as an appbundle, try this instead:
If the Xcode appbundle is elsewhere, just edit the path accordingly.
好吧,当我探索从 Assembla 迁移到 Git 并迁移到 Bitbucket 时,出于绝望,我终于偶然发现了一个解决方案。
我安装了 MacPorts 并安装了 git-svn (sudo port install git-core +svn)。完成后(安装的文件比我预期的多得多,并且花费了更长的时间),我尝试将 svn 存储库初始克隆到 Git 中(如: git svn clone myrepourl -T trunk -b Branches -t Tags) 。
终于,我看到了漂亮的提示,要求我接受Assembla的证书,一个“p”后,Coda和XCode现在又愉快地连接到了subversion。现在我可以在闲暇时转移到 Git,而不是惊慌失措。
Ok, I finally stumbled into a fix, out of desperation as I as exploring moving to Git and moving to Bitbucket from Assembla.
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).
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.