Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How to ignore SSL certificates?
How to ignore SSL certificates? [message #759079] Sat, 26 November 2011 02:06 Go to next message
Cameron Missing name is currently offline Cameron Missing nameFriend
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: Sat, 26 November 2011 02:13]

Report message to a moderator

Re: How to ignore SSL certificates? [message #759351 is a reply to message #759079] Mon, 28 November 2011 13:18 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
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 13:25 Go to previous messageGo to next message
Cameron Missing name is currently offline Cameron Missing nameFriend
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 13:36 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel DoningerFriend
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 14:55 Go to previous message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
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: Tue Mar 19 09:05:30 GMT 2024

Powered by FUDForum. Page generated in 0.02271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top