-
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
iOS error cloning https repositories: The SSL certificate is invalid #246
Conversation
I've heard of certificate errors with @shawndavenport @sroberts @mastahyeti @arrbee Do you guys have any thoughts on what's going on here? |
Hey @isaac, this sounds similar to something I've encountered in the past. Any chance you can check Keychain Access and search for "DigiCert" and let me know if you find any CA certs outside of You should only find the following: The |
@shawndavenport The weird part about it is that it sounds like it's happening only on iOS, not OS X. I don't know if it's even possible to see the system certificates on iOS. |
@shawndavenport - looks like I have the same Digicert certificates as you (serial number matches also): |
@jspahrsummers: well damn look at that, iOS right there in the subject. Sorry I missed that. So, you can view certs that have been installed in a Profile under @isaac, it seems very unlikely this is the problem, but you might want to look and see if there are any DigiCert CA certs installed under any user profiles and marked untrusted. I wish that error was a bit more helpful. |
@shawndavenport - nope those appear to be the only DigiCert CA certs that are installed. I get the same error when running this code on my iPad and in the iOS simulator. There are no certificates listed under |
@jspahrsummers - how would you like to proceed with this? I was thinking it might be a good idea to introduce an |
I'm not confident in this fix as-is because it opens a huge security hole. However, adding an |
@jspahrsummers - pull request here: #252 |
In the future, can you open separate pull requests, instead of converting issues to PRs? A pull request is just one proposed solution for an issue, so it doesn't always make sense to reuse the issue for it. This case is great example — the real solution will be coming in #252. |
Code to reproduce error:
Full error:
The code above clones the repository successfully on Mac OS X with no errors.
This pull request suppresses the error on iOS, but I'm not sure if this is the right way to go.
Thoughts?