简体   繁体   English

Eclipse Git自签名证书错误

[英]Eclipse Git self signed certificate error

I am trying to clone repository accessible via HTTPS protocol using GIT plugin in Eclipse (Eclipse Juno). 我正在尝试使用Eclipse(Eclipse Juno)中的GIT插件克隆可通过HTTPS协议访问的存储库。 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 clone并指定sslVerify选项时,我能够在本地克隆该存储库:

git config --global http.sslVerify no

However, I wanted to achieve that on EGit or GIT client plugin for Eclipse. 但是,我想在Eclipse的EGit或GIT客户端插件上实现该目标。

How to set this configuration in Eclipse? 如何在Eclipse中设置此配置?

UPDATE: 更新:

Have tried this: https://stackoverflow.com/a/9742520/405117 Did not work :( 尝试过这个: https ://stackoverflow.com/a/9742520/405117没用:(

UPDATE 2: 更新2:

Error received : username@servername/git/repository project: cannot open git-upload-pack: 收到错误 :username @ servername / git / repository项目:无法打开git-upload-pack:

Please check: 请检查:

  • Network Connection Settings 网络连接设置
  • Network Connection ->SSH2 Eclipse Preferences 网络连接-> SSH2 Eclipse首选项

You may also need to restart Eclipse after making these changes. 进行这些更改后,您可能还需要重新启动Eclipse。

These changes are already made but no luck :( 这些更改已经完成,但没有运气:(

UPDATE 3: Same issues with Egit 2.2.0 更新3:与Egit 2.2.0相同的问题

Which version of EGit/JGit are you running? 您正在运行哪个版本的EGit / JGit?

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. 但是该帖子来自2011年6月,因此我可以想象到现在该补丁已经发布了。

It says this on the GitBlit docs. 它在GitBlit文档上说了这一点。 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 ) 我不知道您是否在GitBlit上运行远程仓库,但是值得检查Creating your own Self-Signed Certificate链接 )下的设置部分。

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. 远程Eclipse / EGit / JGit客户端(<= 1.1.0)将无法使用此证书进行通信,因为无论http.sslVerify = false客户端设置如何,JGit始终会验证证书的主机名。

There's also another question on SO on the same issue. 在同一问题上还有一个关于SO的问题。

As per James Moger's comment apparently the quote from GitBlit should be 根据James Moger的评论,显然GitBlit的引用应该是

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. 远程Eclipse / EGit / JGit客户端(<= 2.1.0)将无法使用此证书进行通信,因为无论http.sslVerify = false客户端设置如何,JGit始终会验证证书的主机名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM