ruby - SSLv3 read server certificate B: certificate verify failed (Twitter::Error) -


i have received error message:

twitter/rest/client.rb:96:in 'rescue in request' ssl_connect returned=1 errno=0 state=sslv3 read server certificate b: certificate verify failed (twitter::error)

my code is:

require 'twitter' client = twitter::rest::client.new |config|   config.consumer_key        = "xxxx" #removed posting   config.consumer_secret     = "xxxx" #removed posting   config.access_token        = "xxxx" #removed posting   config.access_token_secret = "xxxx" #removed posting end client.status(27558893223) 

i working windows 7 , ruby 1.9.3. have installed latest certificates , updated ruby gems latest version.

i have tried http://railsapps.github.io/openssl-certificate-verify-failed.html , https://gist.github.com/fnichol/867550 , have been able install mentioned there, error persists.

this how fix problem windows

download .perm file first, set ssl_cert_file in command prompt this: ssl_cert_file=c:\my_path\to.pem

https://gist.github.com/fnichol/867550


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -