Vikram
Vikram

Reputation: 4192

Eclipse Git self signed certificate error

I am trying to clone repository accessible via HTTPS protocol using GIT plugin in Eclipse (Eclipse Juno). This repository has a self-signed certificate.

When I use command line git clone and specify the sslVerify option, I am able to clone that repository locally:

git config --global http.sslVerify no

However, I wanted to achieve that on EGit or GIT client plugin for Eclipse.

How to set this configuration in Eclipse?

UPDATE:

Have tried this: https://stackoverflow.com/a/9742520/405117 Did not work :(

UPDATE 2:

Error received: username@servername/git/repository project: cannot open git-upload-pack:

Please check:

You may also need to restart Eclipse after making these changes.

These changes are already made but no luck :(

UPDATE 3: Same issues with Egit 2.2.0

Upvotes: 2

Views: 5341

Answers (1)

Matti Lyra
Matti Lyra

Reputation: 13088

Which version of EGit/JGit are you running?

I found this post which says it is a bug that is being worked on. The post however is from June 2011 so I would've imagined that by now the patch would be there.

It says this on the GitBlit docs. I don't know if you're remote repo is running on GitBlit but it's worth checking the setup section under Creating your own Self-Signed Certificate (link)

Remote Eclipse/EGit/JGit clients (<= 1.1.0) will fail to communicate using this certificate because JGit always verifies the hostname of the certificate, regardless of the http.sslVerify=false client-side setting.

There's also another question on SO on the same issue.

As per James Moger's comment apparently the quote from GitBlit should be

Remote Eclipse/EGit/JGit clients (<= 2.1.0) will fail to communicate using this certificate because JGit always verifies the hostname of the certificate, regardless of the http.sslVerify=false client-side setting.

Upvotes: 1

Related Questions