Cannot connect to OnDemand-hosted Subversion repo with XCode - certificate error

I have been happily using our hosted Subversion repository that comes with OnDemand JIRA/Fisheye/Crucible - it works great from Eclipse, Tortoise, command line etc. However, when I try to connect to the repo from XCode, I am presented with an error (see the attached screenshot). I've tried importing the certificate into my OS X keychain, marking it as trusted, importing the GoDaddy/Starfield root certificate etc., but still no dice.

The steps that I take are:

  1. Open XCode and, from the main splash screen, hit "Connect to a Repository"
  2. Type in (let's pretend my account is called 'abcd') - XCode does recognize the URL, and determines that authentication is necessary, so this seems like the correct URL. Hit 'Next'
  3. Give the repo an arbitrary name, leaving the preselection of 'Subversion' in the dropdown. Hit 'Checkout'
  4. Enter my Atlassian OnDemand credentials into the popup that appears and submit them.
  5. This is where I get the alert, which contains the text:

Error validating server certificate for '':

- The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually!

Certificate information: - Hostname: *

Has anybody else tried to use XCode as a Subversion client for an Atlassian OnDemand instance? Any pointers as to how to work around the error/alert? How do I use the fingerprint to validate the certificate manually?


2 answers

1 accepted

2 votes
Answer accepted

Dylan's workaround requires a whole bunch of stuff to be installed. The dependency tree for that stuff is complicated, to put it charitably. Note that I didn't say complex; I said complicated. Instead, it's much, much quicker and simpler to do the following:

  1. Open Terminal.
  2. Make a manual SVN checkout attempt: svn co https://...
  3. When it asks you to accept the certificate temporarily or permanently, say permanently, with pleasure.
  4. When the checkout's done, revisit Xcode and retry the repo connection. Hey, look, it works now! You didn't have to waste a bunch of time installing other crap!

BTW, the above was stolen shamelessly from: Xcode 4 Source Control Woes

Much better solution - thanks, Chris!

OK, so here's a workaround - use Eclipse (via the Subclipse plugin) on the same machine to connect to the same SVN repo, and when prompted you can "Accept Permanently" the cert. Voila - problem solved in XCode also.

Two things with this:

  1. The problem only seems to exist on the OS X operating system - Windows and Subclipse didn't complain at all about the cert. Perhaps different root CAs installed?
  2. This is not a final solution, clearly - there must be some way in OS X to accept these 'budget' Atlassian/GoDaddy/Starfield certs!

Moved your comment down and marked it as answered so it would pay out your karma. Thanks for posting your solution!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Thursday in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables ROLLBAR_ACCESS_TOKEN...

188 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you