-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL certificate problem: unable to get local issuer certificate #122
Comments
Can you try installing this special build of curl. Run in a clean R session: Sys.setenv(LIBCURL_BUILD="winssl")
devtools::install_github('jeroen/curl') And give me the output? |
Thank you for your reply! Here is the error code:
|
Did you install the special build above? What is your output for |
Hi I ran your code to install that special build and it gave me the error code above. output for $version $ssl_version $libz_version $libssh_version $libidn_version $host $protocols $ipv6 $http2 $idn |
Ah so you can't even connect to github. Can you try this then? Sys.setenv(LIBCURL_BUILD="winssl")
install.packages("https://github.com/jeroen/curl/archive/master.tar.gz", repos = NULL) |
I think it failed:
|
It is important that you run this in a clean r session while the curl package is not loaded. Otherwise it cannot replace the dll while it is in use. |
Sorry, now the code works. Here's the tail:
|
OK great. What is your |
Come on man! How did you solve it ??? This problem has tortured me for weeks! $version $ssl_version $libz_version $libssh_version $libidn_version $host $protocols $ipv6 $http2 $idn |
This version of curl uses the windows native ssl implementation. We might switch to this as the default later in the year. Good to know this solves your issue. |
Thank you brother!!! |
Hi @arthur1616 could you do me a favor and test if this now (still) works for you with curl version 3.0 from CRAN? Just run: |
Sorry for the late reply, here's the output: $version $ssl_version $libz_version $libssh_version $libidn_version $host $protocols $ipv6 $http2 $idn It works for me! |
Great, thanks! |
hello @jeroen, i am facing a similar issue, which was non-existent just past week. I tried implementing the approaches below, and they didn't return any Error messages but I am still having errors when I run the getData statement: Approaches Implemented: [2] Error on running this R snippet: getData(clientCustomerId = awaccid, google_auth = google_auth, statement = uac) Error in function (type, msg, asError = TRUE) : SSL certificate problem: unable to get local issuer certificate Could you provide a solution for the same? |
What is your setup? Are you behind a corporate proxy? Where is the |
I am running the R script, which has the getData function, indeed via a corporate proxy On a windows machine and with R studio |
Yesterday got same issue I got the same @arthur1616 error: `Предупреждение в untar2(tarfile, files, list, exdir, restore_times) :
|
@jeroen, is there a way to pass --ssl-no-revoke option to curl (ideally set it by default)? |
On Windows this already is the default: https://github.com/jeroen/curl/blob/master/src/handle.c#L133-L135 |
Hi @jeroen , I'm facing the same error but in ubuntu 16.04. $ssl_version $libz_version $libssh_version $libidn_version $host $protocols $ipv6 $http2 $idn this is my curl_version() output but I'm wondering why it is different from my "openssl version" command output in ubuntu terminal. If anything is not clear please let me know. Can you please help me? |
Can you add code please to show what it is you are doing exactly. |
I'm using fromJSON function from jsonlite package to scrape a url. the url is: |
Hello, I am facing the same issue on Ubuntu. Has anyone been able to solve this issue?
|
when I do the install.packages('curl'), and then curl_version(), it shows |
This solved (temporarily) my problem with this issue, as published here:
|
Hello, I'm using
quantmod
to fetch data from Yahoo Finance. But whenever I run it, it gives me this error:SSL certificate problem: unable to get local issuer certificate
This only happens when I logged in my company's VPN and it works perfectly if I connect my company's laptop to another network.
Btw, set
ssl_verifypeer = 0L
doesn't work becausequantmod
seems to have a bug which cannot convey curl global settings to its function. Here's that issue: joshuaulrich/quantmod#177My question is, is there any way for me to disable the SSL verification to make it work for
quantmod
?PS: My question on Stackoverflow, which contains more specified information.
https://stackoverflow.com/questions/46331066/quantmod-ssl-unable-to-get-local-issuer-certificate-in-r
Thank you!!!
The text was updated successfully, but these errors were encountered: