来自 Git 存储库的 R studio 项目,自签名证书问题

标签 r git ssl rstudio

当我尝试通过如下克隆存储库在 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/

相关文章:

r - 如何在 geom_Text 中给出多个条件

r - 对于每年,我需要将不同年份的两个月总数相加

git - repo 同步/Git 克隆仅从 Jenkins 的奴隶失败

ruby-on-rails - Rails3 & Git & Heroku - 开发/临时服务器

web-services - Websphere Liberty Profile - 从 JAXWS 客户端调用 SSL SOAP Web 服务时出现 NullPointerException - Truststore 设置

php - 从 PHP -> Ruby 解密 2C2P PKC7

r - 条形图 : changing x axe and adding line

git - 如何在 Git Tower 中更新存储库位置

JBoss 的 SSL 证书导入和配置

r - 如何拟合狄利克雷分布的有限混合