Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » How to ignore SSL certificates?
How to ignore SSL certificates? [message #759079] Fri, 25 November 2011 21:06 Go to next message
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sat Jun 21 17:22:24 EDT 2025

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

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

Back to the top