We are setting up Git repositories for students to use as part of a class at our institution. We need to bypass the SSL verification step in order for the repositories to be cloned. For example, cloning a repository works on the command line like this:
$ env GIT_SSL_NO_VERIFY=true git clone https://domain.edu/path/to/git Cloning into 'git'... Username for 'https://domain.edu': xxx Password for 'https://xxx@domain.edu':
Alternatively, this also works:
$ git config --global http.sslVerify false $ git clone https://domain.edu/path/to/git Cloning into 'git'... Username for 'https://domain.edu': xxx Password for 'https://xxx@domain.edu':
However, when I use SourceTree to attempt to clone the repo, it gets stuck on the authentication part, even with the http.sslVerify in my .gitconfig and the "Disable SSL certificate verification" box checked in the preferences.
Any ideas?
Hi Shane,
If you're working on the Mac there's an option on the Git tab in preferences that says "Disable SSL certificate validation" which you can disable. The same option may be on Windows, too (apologies, I'm the Mac dev and haven't got a Windows OS running handy at the moment)
Cheers
Helped, thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shane,
I've filed an issue for you so it's worth following it from there. We'll still need to validly reproduce this issue but based on what you've said (https://jira.atlassian.com/browse/SRCTREE-1547). I'm creating my own apache server now to have a fake certificate so I can ignore and clone from a URL to clone from.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kieran,
Thanks for the response. As I mentioned in the OP, I have that box checked already.
SourceTree continues asking me for my username and password, even when they are correct.
~Shane
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry missed that somehow. Is this on Windows or Mac?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Strangely, I just tried in a Windows VM, and the repository cloned as expected when I checked the box in the preferences in Windows.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just as a sidenote, have you taken a look at your repository git config (rather than the global one) to see if http.sslVerify is set in there? If so, it would override the global config.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually hold on a minute, you're trying to clone a repository so it should be taking your global config setting. I'll file this as a bug and ready to repro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.