meltingice / flickr-store

Store arbitrary data on Flickr
MIT License
275 stars 18 forks source link

Certificate error when running flickr-authenticate #3

Open ghost opened 11 years ago

ghost commented 11 years ago

I get the following "read server certificate B: certificate verify failed"

d:\projects\flickr-store-master>flickr-authenticate
API Key: xxx
API Secret: xxx
D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/2.0.0/net/http.rb:918:in `connect': SSL_connect returned=1 errno=0 state=SSLv3
read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/2.0.0/net/http.rb:918:in `block in connect'
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/2.0.0/net/http.rb:918:in `connect'
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/2.0.0/net/http.rb:851:in `start'
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/gems/2.0.0/gems/flickraw-0.9.6/lib/flickraw/oauth.rb:147:in `post'

        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/gems/2.0.0/gems/flickraw-0.9.6/lib/flickraw/oauth.rb:92:in `post_f
orm'
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/gems/2.0.0/gems/flickraw-0.9.6/lib/flickraw/api.rb:53:in `call'
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/gems/2.0.0/gems/flickraw-0.9.6/lib/flickraw/api.rb:44:in `initiali
ze'
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/gems/2.0.0/gems/flickraw-0.9.6/lib/flickraw.rb:17:in `new'
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/gems/2.0.0/gems/flickraw-0.9.6/lib/flickraw.rb:17:in `flickr'
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/gems/2.0.0/gems/flickr-store-0.0.3/lib/flickr-store.rb:22:in `auth
enticate'
        from D:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/gems/2.0.0/gems/flickr-store-0.0.3/bin/flickr-authenticate:22:in `
<top (required)>'
        from D:/ruby-2.0.0-p195-i386-mingw32/bin/flickr-authenticate:23:in `load'
        from D:/ruby-2.0.0-p195-i386-mingw32/bin/flickr-authenticate:23:in `<main>'

d:\projects\flickr-store-master>
gep13 commented 10 years ago

@kaushikv I am facing a similar issue, and I as wondering if you ever found a solution to this problem? Were you running on a Windows machine? Thanks!

meltingice commented 10 years ago

I believe you can fix this by upgrading your Ruby version to at least the latest patch level.— Ryan LeFevre (@meltingice) LayerVault Software Engineer

On Mon, Sep 8, 2014 at 5:05 PM, Gary Ewan Park notifications@github.com wrote:

@kaushikv I am facing a similar issue, and I as wondering if you ever found a solution to this problem? Were you running on a Windows machine? Thanks!

Reply to this email directly or view it on GitHub: https://github.com/meltingice/flickr-store/issues/3#issuecomment-54887163

gep13 commented 10 years ago

@meltingice Thanks, I will give that a try.

gep13 commented 10 years ago

The output of ruby --version is ruby 2.0.0p481 (2014-05-08) [x64-mingw32] which I believe is the most up to date patch of this version of Ruby Is that right?

gep13 commented 10 years ago

I have just used a friends Mac, and I did the exact same test, and it worked on his machine without any problems. Looks like this is an issue specifically with Windows. Any thoughts on how to proceed?

jamesjohnmcguire commented 9 years ago

This is still going on with ruby version 2.1.1.6p336. Tried various updates, different configs to no avail. However, it seems to be a problem with the flickraw library. I've been able to repro the issue using one of the flickraw samples.