flickr-store icon indicating copy to clipboard operation
flickr-store copied to clipboard

Certificate error when running flickr-authenticate

Open ghost opened this issue 11 years ago • 6 comments

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>

ghost avatar May 22 '13 02:05 ghost

@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!

gep13 avatar Sep 08 '14 21:09 gep13

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 [email protected] 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

meltingice avatar Sep 08 '14 21:09 meltingice

@meltingice Thanks, I will give that a try.

gep13 avatar Sep 08 '14 21:09 gep13

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 avatar Sep 09 '14 06:09 gep13

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?

gep13 avatar Sep 10 '14 18:09 gep13

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.

jamesjohnmcguire avatar Jul 20 '15 12:07 jamesjohnmcguire