Gustave
Gustave

Reputation: 3538

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:

Upvotes: 9

Views: 11732

Answers (1)

Rick Moritz
Rick Moritz

Reputation: 1518

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.

Upvotes: 4

Related Questions