Windows无法使用给定的CA证书对R对等证书进行身份验证 [英] R Peer certificate cannot be authenticated with given CA certificates, Windows

查看:286
本文介绍了Windows无法使用给定的CA证书对R对等证书进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试使用 gs_read()函数导入Google工作表时,出现以下错误消息:

When trying to import a google sheet using the gs_read() function, I get the following error message:

curl :: curl_fetch_memory(url,handle = handle)错误:对等
证书无法使用给定的CA证书进行认证

Error in curl::curl_fetch_memory(url, handle = handle) : Peer certificate cannot be authenticated with given CA certificates

我正在关注渐近,并在使用代码时得到错误:

I am following this vignette and get the error when using the code:

oceania <- gap %>%  gs_read(ws = "Oceania")

我发现了与< a href = https://stackoverflow.com/questions/23435232/twitter-peer-certificate-can-be-be-authenticated-with-given-ca-certificates> Ubuntu 和php ,但是没有什么能帮助我。

I have found similar issues for Ubuntu and php, but nothing that has been able to help me.

有人知道我为什么会收到此错误以及如何解决该错误吗?

Does anyone know why I am getting this error and how to fix it?

我正在使用R 3.3.2和Windows 7。

I am using R 3.3.2 and Windows 7.

推荐答案

我的同事遇到了同样的问题,我偶然发现在R-Blogger上的发布,作者是Andrew Collier。下面的解决方案可以解决您的问题,但是我不知道它是否还会导致其他安全问题。

My colleague had the same issue and I stumbled on this post on R-Bloggers by Andrew Collier. The solution below will fix your problem, but I don't know if it might cause other security issues.

library(httr)
set_config(config(ssl_verifypeer = 0L))

更新:这将禁用ssl验证。 https://github.com/r-lib/httr/issues/262

update: This will disable ssl verification. https://github.com/r-lib/httr/issues/262

这篇关于Windows无法使用给定的CA证书对R对等证书进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆