简体   繁体   English

Android Studio 到 BitBucket 推送错误 - 证书链中的自签名证书

[英]Android Studio to BitBucket push error - self signed certificate in certificate chain

I've just started using Android Studio (v1.5.1 for Windows 7) and I want to be able to use BitBucket over HTTPS with it (I have Git v2.7.1.0 installed).我刚刚开始使用 Android Studio(适用于 Windows 7 的 v1.5.1),我希望能够通过 HTTPS 使用 BitBucket(我安装了 Git v2.7.1.0)。 I have followed instructions on how to set it up from here , which all seemed very straightforward.我已按照有关如何从此处进行设置的说明进行操作,这一切看起来都非常简单。

However, when it comes to pushing my project to BitBucket it always fails with a "Push failed" error, the latest one being但是,当将我的项目推送到 BitBucket 时,它总是失败并显示“推送失败”错误,最新的错误是
fatal: unable to access 'https:// USERNAME @bitbucket.org/ USERNAME / MYPROJECT .git/': SSL certificate problem: self signed certificate in certificate chain致命的:无法访问的'https://用户名@ bitbucket.org / USERNAME / MYPROJECT的.git /':SSL证书问题:在自我证书链签名证书

The self signed certificate (selfcert.cer) was created from my browser while on BitBucket's website, which I read somewhere I had to do.自签名证书 (selfcert.cer) 是在 BitBucket 网站上从我的浏览器创建的,我在某处阅读了我必须做的事情。

This is all new to me so I'm not really sure what to try next.这对我来说是全新的,所以我不确定接下来要尝试什么。

Self signed certificate could be accepted running following command in command line在命令行中运行以下命令可以接受自签名证书

> git config http.sslVerify false

other git command should work after this.其他 git 命令应该在此之后工作。

This should be just temporary solution as it has security implications.这应该只是临时解决方案,因为它具有安全隐患。 Proper way to fix this is to import certificate.解决此问题的正确方法是导入证书。 Detail here on https://confluence.atlassian.com/fishkb/unable-to-clone-git-repository-due-to-self-signed-certificate-376838977.html or refer How can I make git accept a self signed certificate?详情请见https://confluence.atlassian.com/fishkb/unable-to-clone-git-repository-due-to-self-signed-certificate-376838977.html或参考如何让 git 接受自签名证书?

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

相关问题 与Jenkins的GIT失败,错误为“证书链中的自签名证书” - GIT with Jenkins failed with error “self signed certificate in certificate chain” GitHub证书链中的自签名证书 - Self signed certificate in certificate chain with GitHub 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 SSL 证书问题:证书链中的自签名证书 - SSL certificate problem: self signed certificate in certificate chain 如何解决 [curl: (60) SSL 证书问题:证书链中的自签名证书] - How to solve [curl: (60) SSL certificate problem: self signed certificate in certificate chain] Eclipse Git自签名证书错误 - Eclipse Git self signed certificate error 无法访问“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 Git 存储库中的 R studio 项目,自签名证书问题 - R studio project from Git repository, self signed certificate issue 带有自签名证书,https的egit - egit with self signed certificate, https
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM