当我尝试通过如下克隆存储库在 R studio 中创建新项目时:
文件 >> 新项目 >> 版本控制 >> Git >> ..输入存储库 URL
我收到以下错误信息
克隆到'simple-repository'... 致命:无法访问“https://github.com/kedemd/simple-repository/” ': SSL 证书问题:证书链中的自签名证书
知道为什么我得到这个/如何解决它吗?
我正在使用 R 4.2、RStudio 1.1 和 Windows
最佳答案
您必须配置 git 以信任您的企业自签名证书。
在 this answer 中解释了如何做到这一点。 .实质上:
1)获取证书:
openssl s_client -connect repos.sample.com:443
Catch the output into a file cert.pem and delete all but part between (and including) -BEGIN CERTIFICATE- and -END CERTIFICATE-
2) 配置git信任这个证书
git config --global http.sslCAInfo /path/to/cert.pem
阅读original answer了解全部详情。
关于来自 Git 存储库的 R studio 项目,自签名证书问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46796256/