在windows中的GoCD管道中添加材料时面临SSL证书问题错误



面向下面的issue。

执行命令时出错:---命令---git-ls远程http://gbs05291:******@git.prosm/fbkpla/gocd-mobileeapp.git refs/heads/InvestmentApp_GoCDTest---环境---{}---输入----

---退出代码(128)------标准输出------标准误差---STDERR:致命:无法访问"http://*********repoIP**/sscm/fbkpla/gocd mobileapp.git/":SSL证书问题:证书链中的自签名证书

1.尝试使用以下命令将证书添加到gocd服务器中的密钥库中。。keytool-importcert-file"C:\Users\Desktop\BitBucket.cer"-keystore"C:\Program Files(x86)\Go Server\config\keystore">

2.已尝试git-config--全局http.sslVerify false

请注意:可以从gitbash中克隆相同的repo。

下载证书,将其转换为.pem文件,并根据需要在系统级、全局级或本地级将.pem证书添加到git-config中。这将解决SSL自签名证书问题。

使用OpenSSL:将.crt转换为.pem文件

x509-outform der-in/certificate.crt-out/certifice.pem

将证书添加到git-config:

git-config--系统http.sslCAInfo/certificate.pem

请使用这些链接。希望你能找到更好的解决方案。

在服务器上使用您自己的SSL证书