Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure GIT HTTPS client certificate authentication in Eclipse using EGit?

I set up a GIT server (Gitblit) that uses HTTPS client authentication. I have a working configuration and key material with the standard GIT client on Linux (Debian).

Until now I didn't figure out how to correctly configure:

  • The standard GIT client (command line, v1.9.5) on Windows (Win7 64)
  • Eclipse (Luna) with EGit.
like image 349
Gustave Avatar asked Mar 05 '15 13:03

Gustave


1 Answers

For Windows 7, I successfully used these parameters:

[http "https://git.repository.net"]
proxy = proxy.to.use:1234
sslCert = "C:/Path/to/mycert.crt"
sslKey = "C:/Path/to/mycert.key"
sslVerify = true
sslCertPasswordProtected = false

Be sure to not forget the quotes, or you will run into trouble with forward slashes. I think git will also prompt you for the password, if you leave one on the key, but I'm not sure how well it can cache, and for me it got old quick to re-enter that password routinely.

Regarding Eclipse: I can at least verify, that the current SimRel 2018-9 doesn't work with that .gitconfig, so I'm still looking for a way to make it work.

like image 139
Rick Moritz Avatar answered Oct 13 '22 01:10

Rick Moritz