nsanta/fbgraph — Issue #56: SSL certificate errors
Author: cameronyule
Created: 2011-10-08 16:25:46+00:00
State: open

I'm experiencing the following error while trying to use authenticated methods in fbgraph 1.8.3:

RestClient::SSLCertificateNotVerified (SSL Verification failed -- Preverify: false, Error: unable to get local issuer certificate (20)

I found two related mailing list threads ([one](http://groups.google.com/group/fb_graph/browse_thread/thread/bd8a667eab221e36), [two](http://groups.google.com/group/fb_graph/browse_thread/thread/3e76bd63c7e2ff68/b116280a2cefd033?lnk=gst&q=restclient+with+cert#)) which mentioned the [restclient_with_cert](https://github.com/nov/restclient_with_cert) gem, however after including this in my Gemfile and updated my bundle the errors persisted.

Copying the certificates declared in restclient_with_cert's `lib/cert` file into fbgraph's `lib/cacert.pem` makes things work again, so I'm assuming I'm not using that gem correctly.

Any ideas the best way to resolve this issue?