Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » How to ignore SSL certificates?
How to ignore SSL certificates? [message #759079] Fri, 25 November 2011 21:06 Go to next message
Cameron Missing name is currently offline Cameron Missing name
Messages: 6
Registered: November 2011
Junior Member
We use a self signed certificate and want to use EGit. It seems like a pain to force the developer to import the certificate into their java keystore. In dos or linux you can easily ignore the certificate with "GIT_SSL_NO_VERIFY=true". How can we ignore the certificate in EGit using Eclipse? Currently it won't connect at all with the bad self-signed cert in EGit.

As a double verification that this is the problem I imported the cert into the JRE cacerts keystore and it resolves the problem. Hopefully all developers won't need to do this.

Getting things working smoothly, easily and securely are all critical if we hope to make the move from CVS to git.

Thanks!

[Updated on: Fri, 25 November 2011 21:13]

Report message to a moderator

Re: How to ignore SSL certificates? [message #759351 is a reply to message #759079] Mon, 28 November 2011 08:18 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias Sohn
Messages: 491
Registered: July 2009
Senior Member
Set the git config parameter
http.sslVerify=false
e.g. in your ~/.gitconfig file
Re: How to ignore SSL certificates? [message #759353 is a reply to message #759351] Mon, 28 November 2011 08:25 Go to previous messageGo to next message
Cameron Missing name is currently offline Cameron Missing name
Messages: 6
Registered: November 2011
Junior Member
Perfect, that did the trick! Thanks for the help with that. Since I'm using EGit in Eclipse as far as a user goes they don't have a ".gitconfig" even though I'm sure there is one somewhere. I was able to set this in Eclipse under Window->Preferences->Team->Git->Configuration just like setting the user.name and user.email.
Re: How to ignore SSL certificates? [message #759362 is a reply to message #759353] Mon, 28 November 2011 08:36 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel Doninger
Messages: 119
Registered: October 2010
Senior Member
The location of the .gitconfig file for user and system settings is shown in that wizard. As default your user .gitconfig is in C:\Documents and Settings\username (on Windows) or in your home folder on Linux.
Re: How to ignore SSL certificates? [message #759400 is a reply to message #759362] Mon, 28 November 2011 09:55 Go to previous message
R Shapiro is currently offline R Shapiro
Messages: 379
Registered: June 2011
Senior Member
Also worth looking at the 'Properties' view, which in egit shows a Git configuration editor for the repository. It's very similar to the preference panel but it's not modal and has an option to show the effective config, after merging system, global and repository settings. Very handy feature.

Previous Topic:Diff between a current state of a file and the commited version
Next Topic:Pull fails in both Jgit API and EGit eclipse plugin
Goto Forum:
  


Current Time: Sun Apr 20 18:04:51 EDT 2014

Powered by FUDForum. Page generated in 0.02821 seconds