简体   繁体   English

与Jenkins的GIT失败,错误为“证书链中的自签名证书”

[英]GIT with Jenkins failed with error “self signed certificate in certificate chain”

I am trying to configure GIT with Jenkins( source Code Management section). 我正在尝试使用Jenkins(源代码管理部分)配置GIT。 As soon I enter repository URL , Error pops up and stating: 一旦输入存储库URL,就会弹出错误并指出:

Failed to connect to repository : Command "C:\Program Files\Git\bin\git.exe ls-remote -h https://xxx.xxxxx.xxxxx.xxxxxx.xxx/stash/scm/project/project.git HEAD" returned status code 128:
stdout: 
stderr: fatal: unable to access 'https://xxx.xxxxx.xxxxx.xxxxxx.xxx/stash/scm/project/project.git/': SSL certificate problem: self signed certificate in certificate chain 

Please guide/help how I can I skip this security Check with Jenkins (git plugin) or How self signed certificate can be installed in system to work with Jenkins on windows 7. 请指导/帮助我如何跳过Jenkins(git插件)的安全检查或如何在系统中安装自签名证书以在Windows 7上与Jenkins一起使用。

Jenkins Version : 2.92 詹金斯版本:2.92
GIt Plugin : version 3.6.4 GIt插件:版本3.6.4
Git client plugin : 2.6.0 Git客户端插件:2.6.0

Thanks for information, I found the solution. 感谢您提供信息,我找到了解决方案。 Its a feature of plugin that asks for security check, hence for that 它是插件的一项功能,要求进行安全检查,因此

See the steps below. 请参阅以下步骤。

1)Connect to the website using SSL ( https://whatever ) 1)使用SSL( https:// whatever )连接到网站

2)go to the Three Dots Menu -> More Tools -> Developer Tools, then click on the Security Tab. 2)进入三点菜单->更多工具->开发人员工具,然后单击安全性选项卡。 This will give you a Security Overview with a View certificate button. 这将为您提供带有“查看证书”按钮的“安全概述”。

3)Click on the View certificate button -> Details 3)单击查看证书按钮->详细信息

A modal window will open. 将打开一个模式窗口。 It has two panes. 它有两个窗格。 The top one shows the trust hierarchy of the site's certificate (the last one listed), the intermediate certificate(s), and the root certificate (the topmost one). 最上面的一个显示站点证书(列出的最后一个),中间证书和根证书(最上面的证书)的信任层次结构。 The second, larger pane, shows the details of one of the certificates. 第二个较大的窗格显示其中一个证书的详细信息。 There may be zero or more intermediate certificates. 可能有零个或多个中间证书。 Note that the root certificate has a gold-bordered icon. 请注意,根证书具有金色图标。 The others have a blue border. 其他的都有蓝色边框。

To Export: 出口:

4)First click on the certificate's icon in the trust hierarchy. 4)首先在信任层次结构中单击证书的图标。 The certificate will be shown in the main part of the modal. 证书将显示在模式的主要部分中。

5)Click on the root certificate's large icon in the main part of the modal. 5)单击模态主要部分中根证书的大图标。

6.Select the "Base64 encoded" option and then export to a .cer file on your local file system 6.选择“ Base64编码”选项,然后导出到本地文件系统上的.cer文件

7.Now configure Git to use the downloaded .cer file using the Git config command git config --global http.sslCAInfo C:/Users/E074236/certificate.cer 7,现在使用Git配置命令git config --global http.sslCAInfo C:/Users/E074236/certificate.cer配置Git以使用下载的.cer文件

git-client pluguin from jenkins may ask for credentials. jenkins的git-client插件可能会要求提供凭据。

If this is working with your own account (before trying to setup Jenkins), check your git config -l . 如果这与您自己的帐户一起使用(在尝试设置Jenkins之前),请检查您的git config -l
Look for value like: 寻找类似的值:

And double-check with which account your Jenkins is running: System account or user account. 然后仔细检查您的Jenkins使用哪个帐户:系统帐户或用户帐户。

暂无
暂无

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

相关问题 Git - “SSL证书问题:证书链中的自签名证书” - Git - “SSL certificate issue: self signed certificate in certificate chain” Azure DEVOPS 中的 GIT 错误 - SSL 证书问题:证书链中的自签名证书推送 - GIT error in Azure DEVOPS - SSL certificate problem: self signed certificate in certificate chain Pushing Android Studio 到 BitBucket 推送错误 - 证书链中的自签名证书 - Android Studio to BitBucket push error - self signed certificate in certificate chain GitHub证书链中的自签名证书 - Self signed certificate in certificate chain with GitHub Eclipse Git自签名证书错误 - Eclipse Git self signed certificate error SSL 证书问题:证书链中的自签名证书 - SSL certificate problem: self signed certificate in certificate chain 无法访问“https://github.com/user name/projectName.git/”:SSL 证书问题:证书链中的自签名证书 - unable to access 'https://github.com/user name/projectName.git/': SSL certificate problem: self signed certificate in certificate chain sonarqube - 添加自签名证书以与 git 连接 - sonarqube - adding self signed certificate to connect with git 如何使用自签名证书将Jenkins从服务器连接到Git服务器? - How do I connect a Jenkins slave to a Git server with self signed certificate? 如何解决 [curl: (60) SSL 证书问题:证书链中的自签名证书] - How to solve [curl: (60) SSL certificate problem: self signed certificate in certificate chain]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM