Skip to content

Instantly share code, notes, and snippets.

@sfgeorge
Created December 12, 2011 01:42
Show Gist options
  • Save sfgeorge/1464144 to your computer and use it in GitHub Desktop.
Save sfgeorge/1464144 to your computer and use it in GitHub Desktop.
SSL rake error
# Step 1. Use a system with an outdated SSL CA file
# Step 2. Run the toadhopper integration rake tasks:
bundle exec rake test AIRBRAKE_API_KEY=$AIRBRAKE_API_KEY AIRBRAKE_FULL_TEST=1
# Output:
Loaded suite /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started
...E
Error:
test_deploy_integration_good_key(Toadhopper::TestDeployTracking):
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:678:in `connect'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:678:in `block in connect'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:57:in `timeout'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:87:in `timeout'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:678:in `connect'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/fakeweb-1.3.0/lib/fake_web/ext/net_http.rb:49:in `request_with_fakeweb'
/tmp/toadhoptest/lib/toadhopper.rb:129:in `block in response'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:627:in `start'
/tmp/toadhoptest/lib/toadhopper.rb:122:in `response'
/tmp/toadhoptest/lib/toadhopper.rb:81:in `deploy!'
/tmp/toadhoptest/test/test_deploy_tracking.rb:47:in `test_deploy_integration_good_key'
.........E
Error:
test_posting_integration(Toadhopper::TestPosting):
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:678:in `connect'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:678:in `block in connect'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:57:in `timeout'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:87:in `timeout'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:678:in `connect'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/fakeweb-1.3.0/lib/fake_web/ext/net_http.rb:49:in `request_with_fakeweb'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:978:in `post'
/tmp/toadhoptest/lib/toadhopper.rb:132:in `block in response'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:627:in `start'
/tmp/toadhoptest/lib/toadhopper.rb:122:in `response'
/tmp/toadhoptest/lib/toadhopper.rb:118:in `post_document'
/tmp/toadhoptest/lib/toadhopper.rb:62:in `post!'
/tmp/toadhoptest/test/test_posting.rb:30:in `test_posting_integration'
Finished in 0.860679 seconds.
14 tests, 36 assertions, 0 failures, 2 errors, 0 pendings, 0 omissions, 0 notifications
85.7143% passed
16.27 tests/s, 41.83 assertions/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment