Question

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://myuserid@subversion.assembla.com/svn/my/repo/path': Server
 certificate verification failed: issuer is not trusted (https://subversion.assembla.com)
Was it helpful?

Solution

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/usr/bin/svn up

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:

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

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top