R Peer certificate cannot be authenticated with CA, Windows certificates

When trying to import a Google page using the gs_read() function, the following error message appears:

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

I follow this vignette and get an error when using the code:

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

I found similar problems for Ubuntu and php , but nothing that was able to help me.

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

I am using R 3.3.2 and Windows 7.

+5
source share
1 answer

My colleague had the same problem and I came across this post on R-Bloggers by Andrew Collier. The solution below will fix your problem, but I do not know if this can cause other security problems.

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

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

+11
source

Source: https://habr.com/ru/post/1259197/


All Articles