Working on Facebook authentication integration with Devise and hit an ssl snag when fb would call the oauth callback:
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed):
What the?!
So I found this little tidbit on stackoverflow which solved the problem. The issue is that you need to tell Devise->OmniAuth->Faraday where your cert is. Here’s how to change your devise.rb initializer:
Before:
config.omniauth :facebook, ‘xx’, ‘yy’, {:scope => ‘publish_stream,offline_access,email’}
After:
config.omniauth :facebook, ‘xx’, ‘yy’, {:scope => ‘publish_stream,offline_access,email’, :client_options => {:ssl => {:ca_file => ‘/etc/pki/tls/certs/ca-bundle.crt’}}}
If you wanted it to build a product you’d find a way to get time to work on it. If you really wanted to start that new hobby you’d sacrifice something to find the time and money to do it.
I'll define a "Wannabe Entrepreneur" as someone who has never made money from their businesses. Here are the different types of wannabes.
In the past few years I've built go-carts, built a 200+ sq ft workshop, written several eBooks. How do I create a life where I have time to work on side projects?
Receive 5 Software projects mistakes we have made over the years and how to avoid them.