I am trying to get Xcode 4 working with my svn repository. I type in the svn address, which it says is reachable, but when I try to check out, it comes up with \"The server
It's a known issue.
Open terminal, type
svn ls <your repository address>
confirm certificates, check login/pass. After that repo will work fine in xcode.
To answer the original question:
Translation: Xcode can't find the SSL client certificate in your keychain, the certificate is not valid, or if there's multiple certificates, Xcode doesn't know which one to use.
To install a certificate in your keychain: In Finder, open the file that contains your client certificate (typically a .p12 file). Click Add, then enter the password to decrypt the .p12 file. If you have the corresponding root certificate (typically a .pem file), import it as well and click "Always Trust" when prompted.
To make sure the certificate is valid: In Keychain Access, select the client certificate and look for a green checkmark and the words "This certificate is valid".
To associate the URL with a specific certificate: You need an identity preference. Xcode can't do this, but both Keychain Access and Safari can. In Keychain Access, select the client certificate and choose File menu > New Identity Preference…. Enter the repository URL (e.g. https://foo.example.com/path/to/repository
) and click Add.
Alternatively: In Safari, go to your repository URL. If there are multiple certificates installed, Safari will prompt "The website “foo.example.com” requires a client certificate" and show a list of certificates. Choose the one you installed in step (1).
To get everything working, you also need to get past these two common errors:
https://foo.example.com:443
Translation: Subversion can't find your SSL client certificate on disk.
Xcode uses Keychain, and Subversion itself (as of v1.4) uses Keychain as well for passwords. For certificates, however, Subversion must be pointed to files on disk.
1) Open ~/.subversion/servers
in your favorite text editor. At the bottom, add the line
ssl-client-cert-file = /path/to/first.last.p12
where the value is the path to your client certificate in PKCS#12 format.
https://foo.example.com/path/to/repository
': SSL handshake failed, client certificate was requested: SSL error: sslv3 alert handshake failureTranslation: Subversion can't find the password to decrypt your SSL client certificate.
See explanation above.
To save your .p12 password in Keychain: In Terminal, type
svn ls https://foo.example.com/path/to/repository
At this point, you should see the contents of your repository displayed in Terminal.
Note: If you use Versions by Black Pixel, at least v1.2.2 seems to have trouble using Keychain for passwords, so in ~/.subversion/servers
you'll also need to add the line
ssl-client-cert-password = yourpassword
where your password is in cleartext. (This is obviously not secure, so don't do it unless you have to.)
You can put your certificate file name to SVN configuration file
~/.subversion/servers
In section [global] just add a line (use a full path - not relative)
ssl-client-cert-file = /path/to/your/certificate.p12
Optionally you can add also
ssl-client-cert-password = yourpassphrase
store-passwords = yes
store-ssl-client-cert-pp = yes**