RAdwords错误(“服务器证书验证失败")

问题描述:

当我运行以下涉及RAdwords软件包的代码时,出现错误,该错误似乎与证书有关.有一个简单的解决方案吗?

When I run the following code involving the RAdwords package, I get an error which seems to be related to certificates. Is there a simple solution to this?

library(RAdwords)
google_auth <- doAuth()

函数错误(类型,msg,asError = TRUE):服务器证书 验证失败. CA文件: /home/pavel/R/x86_64-pc-linux-gnu-library/3.2/RCurl/CurlSSL/ca-bundle.crt CRLfile:无

Error in function (type, msg, asError = TRUE) : server certificate verification failed. CAfile: /home/pavel/R/x86_64-pc-linux-gnu-library/3.2/RCurl/CurlSSL/ca-bundle.crt CRLfile: none

该错误发生在Ubuntu 14.04,R 3.2.0,RCurl 1.95-4.5和RAdwords 0.1.4上.

The error occurs on Ubuntu 14.04, R 3.2.0, RCurl 1.95-4.5, and RAdwords 0.1.4.

我在Ubuntu 14.04上遇到了同样的问题,但是从 cURL主页解决了该问题.我知道这是一个丑陋的解决方法:)

I had the same issue on Ubuntu 14.04, but manually downloading (and overriding the RCurl shipped version of) the cacert.pem from the cURL homepage resolved the issue. I know it's an ugly workaround :)