-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloning with a cert fails on Mac because objective-git is not built with OpenSSL #499
Comments
libgit2 recently dropped OpenSSL in favor of SecureTransport on Apple platforms #2997. It appears that the Eventually it would be ideal to drop the OpenSSL dependency (looks like the Mac target still links with it). However, I don't see a way to set certificate locations in libgit2 without having OpenSSL enabled. This may need to be opened as an issue in libgit2. |
It looks like the libgit2 API has changed. What happens when you make a connection attempt without the |
@jaanus what's the reason you're providing a certificate? Is the server using a self-signed cert? I'm able to clone from GitHub using ObjectiveGit 0.8.7 in a trivial Mac app. But on iOS, I do have to provide a cert using |
I was providing a certificate because I remembered this as being necessary with the previous OpenSSL approach. In fact, I did the patch to support that option a few months ago :) However, I now simply removed passing the certificate URL, and everything works as expected for me on a sandboxed OSX app. (And I also assume it would work for a non-sandboxed app, but I didn’t test it.) |
Well, thank you for #414! I've been using that on iOS, but now it appears to no longer necessary. I just verified that a sandboxed iOS app can also clone without being able to provide a custom cert. This lowers the priority of #505, but I'm sure someone will eventually need to provide a custom cert. |
The latest code 39e3beb fails to build with SSL on Mac, which results in this code …
failing with this error:
This error is generated by libgit2/settings.c:
A fresh vanilla clone of the repository. Xcodd 6.4, Yosemite 10.10.4. Haven’t touched any build settings or anything at all really. Should have all the required tool dependencies.
What gives?
The text was updated successfully, but these errors were encountered: