git “无法验证 SSL 主机”错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31663010/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 03:24:53  来源:igfitidea点击:

"SSL host could not be verified" error

eclipsegitsslbitbucketverification

提问by Kagutsuchi

Whenever I try to connect the git via eclipse mars, I entered the bitbucket URL as the instructions in this website.

每当我尝试通过 eclipse mars 连接 git 时,我都会按照本网站的说明输入 bitbucket URL。

http://crunchify.com/how-to-configure-bitbucket-git-repository-in-you-eclipse/

http://crunchify.com/how-to-configure-bitbucket-git-repository-in-you-eclipse/

The problem occurred in the step 9 which is in the website link. Then when I click Next, the following errors occur.

问题出现在网站链接中的第9步。然后当我单击下一步时,出现以下错误。

.git is missing at end of repository URL // I tried it but SSL verification error occurred again.) SSL host could not be verified. (set http.sslVerify=false in Git configuration)

存储库 URL 末尾缺少 .git // 我尝试过,但再次发生 SSL 验证错误。)无法验证 SSL 主机。(在 Git 配置中设置 http.sslVerify=false)

How can I solve that SSL host issue and pass to the step 10 which is the website link?

如何解决该 SSL 主机问题并转到第 10 步,即网站链接?

回答by pierpytom

In my experience it seems that it happens under Windows with certain configuration of Eclipse (not sure which ones).

根据我的经验,它似乎发生在具有某些 Eclipse 配置的 Windows 下(不确定是哪些)。

Go in Eclipse Preferences -> Team -> Git -> Configuration, and click "Add Entry..."

进入 Eclipse Preferences -> Team -> Git -> Configuration,然后点击“Add Entry...”

Put "http.sslVerify" as key and "false" as value (no quotes).

将“http.sslVerify”作为键,将“false”作为值(无引号)。

In the "clone repository" window put your user / password (don't leave "git", since there is no ssh-key configured under Windows, I suppose).

在“克隆存储库”窗口中输入您的用户/密码(不要留下“git”,因为在 Windows 下没有配置 ssh-key,我想)。

If needed, in the Git Repository view, check the properties of your new repository and double check that remote.origin.url has your username rather than "git" (otherwise during authentication you'll have a greyed out username textbox with "git" written in it).

如果需要,在 Git Repository 视图中,检查新存储库的属性并仔细检查 remote.origin.url 是否包含您的用户名而不是“git”(否则在身份验证期间,您将拥有一个带有“git”的灰色用户名文本框写在里面)。