youtube_it_rails_app_example icon indicating copy to clipboard operation
youtube_it_rails_app_example copied to clipboard

OpenSSL::SSL::SSLError in VideosController#upload

Open benjaminmbrown opened this issue 12 years ago • 1 comments

Just cloned this, bundle install, got my dev key, etc and followed all setup directions. The app loads fine in localhost but when I click "Step 2" after adding a title and desc, I See this error on http://localhost:3000/videos/new/upload

OpenSSL::SSL::SSLError in VideosController#upload

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed Rails.root: C:/rails/youtube_it_rails_app_example

Application Trace | Framework Trace | Full Trace app/models/video.rb:36:in token_form' app/controllers/videos_controller.rb:6:inupload' Request

Parameters:

{"utf8"=>"✓", "authenticity_token"=>"aKxzHDlasN4h9qhx86j7Fbj8mTwT8614tKSVgl+OwzI=", "video"=>{"title"=>"test1", "description"=>"test1"}}

benjaminmbrown avatar Apr 24 '13 21:04 benjaminmbrown

Doubtless you have moved on from this by this point. But this problem is due to a configuration on your system. Ruby can't find a root certificate to trust. You can resolve this in a few ways, not sure which will work for you, but there are several options listed in this so article.

http://stackoverflow.com/questions/4528101/ssl-connect-returned-1-errno-0-state-sslv3-read-server-certificate-b-certificat

Cheers, Russ

srussking avatar Jun 26 '13 17:06 srussking