libin/dropbox-sdk — Issue #1: SSL cert error
Author: mansus
Created: 2012-01-18 11:28:17+00:00
State: open

Hello,

when using the method serialize from the DropboxSession class the following error arises:

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)

I am using Ubuntu 10.04 and ruby 1.9.2.

I have patched do_http method in dropbox_sdk.rb . I have added the following line:

http.ca_path = '/etc/ssl/certs' if File.exists?('/etc/ssl/certs')

... and now works fine (/etc/ssl/certs would only work in Ubuntu).

After googling for a while I have seen that this is also happening in other gems. Their solution has been giving the ability to specify the certs path in an initializer.

Any workaround or solution instead of hacking the gem?

Thanks in advance!