#6 ✓invalid
Lee Martin

Error on "/login"

Reported by Lee Martin | March 26th, 2009 @ 03:26 PM

OpenSSL::SSL::SSLError (certificate verify failed):

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:590:in connect' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:590:inconnect' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:557:in do_start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:546:instart' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:1044:in request' /Users/Lee/.gem/ruby/1.8/gems/oauth-0.3.2/lib/oauth/consumer.rb:122:inrequest' /Users/Lee/.gem/ruby/1.8/gems/oauth-0.3.2/lib/oauth/consumer.rb:156:in token_request' /Users/Lee/.gem/ruby/1.8/gems/oauth-0.3.2/lib/oauth/consumer.rb:104:inget_request_token' /Users/Lee/Sites/twt.fm/vendor/plugins/twitter-auth/app/controllers/sessions_controller.rb:4:in new' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:insend' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in perform_action_without_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:incall_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in perform_action_without_benchmark' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:inperform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:inperform_action_without_flash' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in perform_action' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:insend' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in process_without_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:inprocess' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in process' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:incall' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in call'

Comments and changes to this ticket

  • Michael Bleigh

    Michael Bleigh March 26th, 2009 @ 03:30 PM

    • State changed from “new” to “invalid”

    Lee,

    This is due to OpenSSL not having certificates against which to verify. The solution to it is either to turn off SSL verification or get a certificate bundle to compare against.

    http://ghouston.blogspot.com/200...

    The other solution would be to take the "s" off of "https" in twitter_auth.yml's base_url, but this would be less recommended.

  • Lee Martin

    Lee Martin March 26th, 2009 @ 03:34 PM

    Rad, thanks for the quick reply.

  • Lich

    Lich April 28th, 2009 @ 03:09 PM

    Hello. I have some problems with this according to twitter authentification. Using certificate of twitter.com gives errors and it happens in different certificate formats. Or OpenSSL::X509::StoreError or "certificate verify failed". This line represents getting the certificate: openssl s_client -connect twitter.com:443

    Certificate file contains: -----BEGIN CERTIFICATE----- <...> -----END CERTIFICATE-----

    Thank you

  • Samuel Joseph

    Samuel Joseph May 27th, 2009 @ 07:20 PM

    I think the simpler solution here is adding the following to individual environment files:

    OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

    as described in tutorial comments here:

    http://intridea.com/2009/3/23/twitter-auth-for-near-instant-twitter...

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A full-stack authentication system for Rails that uses Twitter.

People watching this ticket

Pages