-
Notifications
You must be signed in to change notification settings - Fork 17
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 Error #4
Comments
I haven't encountered that issue before (one folder versus full). But I'll try to replicate the issue. Do |
The keys are correct. I checked them several times before posting... was worried about that! The browser did not load, the error was just returned before any other activity occurred. |
If you can slide curl options into the request, add .opts = list(ssl.verify = FALSE) and that hopefully bypass the problem, albeit unsafely. Alternatively, you can tell curl to where to find certificates, D. On 10/9/12 1:27 PM, Jared Knowles wrote:
|
That didn't seem to work. But, I did get it to work in Ubuntu without the above code. I think I need to check out my Win 7 RCurl installation and get back with you. |
Update: I ran the following code to no avail: dropbox_credentials<-dropbox_auth(mykey,mysecret,
.opts=list(cainfo=system.file("CurlSSL","cacert.pem",package="RCurl")))
# Alternate
dropbox_credentials<-dropbox_auth(mykey,mysecret,
.opts=list(cainfo="Path/To/My/cacer.pem"))
# Alternate 2
a<-curlSetOpt(.opts=list(cainfo=system.file("CurlSSL","cacert.pem",package="RCurl"))
dropbox_credentials<-dropbox_auth(mykey,mysecret,.opts=a)
No luck with any of them, still getting the same SSL error. Trying to bypass the problem didn't work either. I am wondering what the issue might be with the certificates could be. I really love what you can do with this package and want to write a package that utilizes this access to Dropbox, but I have to figure out how to make it work on Windows installs. I checked out my own install and didn't find anything abnormal--the certificates are right there. Any thoughts? Otherwise, perhaps I need to go check in with the RCurl folks. |
Duncan (the other author for this package) is the person who also wrote RCurl. Neither of us work in a windows environment but I'll wait and see if Duncan has a response to this. |
Windows is a pain to support, I understand! But, it would be great if I could figure out what knobs to turn to get it working so I can support the bulk of the users of the package I am working on who will be Windows users. Some further digging today turned up this question on SO: http://stackoverflow.com/questions/6736895/using-rcurl-with-https But, I think RCurl already has the lib built in these days. |
We can get this to work. I assume that the version of RCurl that you have on windows does have https support But I suspect the problem is with the certificates. And we need to determine where in f = system.file("CurlSSL","cacert.pem",package="RCurl") and file.exists(f) Then, can you use .opts=list(cainfo=system.file("CurlSSL","cacert.pem",package="RCurl")), and send the output. Thanks On 10/10/12 2:02 PM, Jared Knowles wrote:
|
Thanks for the persistence and the help. I am going to try it on another Windows box too, just in case. On this machine, when I run: file.exists(f) returned TRUE. When I run: dropbox_credentials<-dropbox_auth(mykey,mysecret,
.opts=list(cainfo=system.file("CurlSSL","cacert.pem",package="RCurl")),verbose=TRUE)
I get the following output: Error in function (type, msg, asError = TRUE) : |
Thanks. Looks like I had a ) in the wrong place so the verbose wasn't in the .opts. dropbox_credentials<-dropbox_auth(mykey,mysecret, Thanks On 10/10/12 4:43 PM, Jared Knowles wrote:
|
Yeah, I tried it both ways, but you get the same output either way. It doesn't seem like verbose is getting passed through that list. I tried to put it outside of .opts, and even before .opts, but still get the same output. |
Aaah. That could be very instructive. But we can still get where we want with the current code and h = getCurlHandle(verbose = TRUE, cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")) dropbox_auth(mykey,mysecret, curl = h) D. On 10/10/12 4:53 PM, Jared Knowles wrote:
|
It looks like getCurlHandle is not being passed through dropbox_auth() I get the same error running the code above as well. |
Yes indeed. A simple change to dropbox_auth() is cred <- handshake(dropbox_oa, post = FALSE, verify = paste("Use the Web browser to grant permission to this code", i.e. to pass the curl passed to dropbox_auth() to the handshake() function. My guess is that will fix things. However, another way around this problem is to set the default options used Use options(RCurlOptions = c(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"), Then go ahead and call drobox_auth() and when it calls getCurlHandle() it "should" use these. Thanks for your patience and perseverance. D. On 10/10/12 6:46 PM, Jared Knowles wrote:
|
The Thank you so much for helping me work through it in the Windows instance. If this is only a Windows issue maybe I can help update the documentation for Windows users? |
@jknowles I am facing the same issue. What did you do to make it work correctly? |
I experienced the same issue as jknowles when I tried to use absolutely any of the functions in the rDrop package. However unlike him, setting the global options using the following code did not work for me:
If I went this route, any subsequent rDrop functions that I tried to run gave me the following error:
I did manage to get around the rDrop SSL error by running the following though
If I now include the "curl= h" piece of code inside every rDrop function (not just dropbox_auth) when I run them everything works perfectly! Anyway, I hope this is helpful. Thanks for the great package! Ben |
Hi, I found this to work on Windows 7: options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"), verbose = TRUE)) However, I had issues reusing a credentials object saved in a .rda between sessions. I was planning on using this for a shiny app hosted on shinyapps.io, so in the end I just created credentials object in a linux vm and used that for the app, and now it works wonderfully! Thanks for developing rDrop! |
Thanks @paleo13! |
After running:
The following error is returned:
"Error in function (type,msg,asError=TRUE) :
SSL certificate problem, Verify that the CA cert is OK. Details:
error: 14090086:SSL routine: SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"
This is on a Windows 7 machine running R 2.15.1
Could the error be because the app being authorized only has access to one folder in the Dropbox, and not the full Dropbox?
The text was updated successfully, but these errors were encountered: