Skip to content

Instantly share code, notes, and snippets.

@nahi
Created October 31, 2009 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nahi/223278 to your computer and use it in GitHub Desktop.
Save nahi/223278 to your computer and use it in GitHub Desktop.
0% ruby -d -r open-uri -e 'p open("https://www.rsa.com/", :ssl_ca_cert => "/usr/local/lib/ruby/site_ruby/1.8/httpclient/cacert.p7s").read'
Exception `OpenSSL::SSL::SSLError' at /usr/local/lib/ruby/1.8/net/http.rb:586 - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
/usr/local/lib/ruby/1.8/net/http.rb:586:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
from /usr/local/lib/ruby/1.8/net/http.rb:586:in `connect'
from /usr/local/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /usr/local/lib/ruby/1.8/net/http.rb:542:in `start'
from /usr/local/lib/ruby/1.8/open-uri.rb:297:in `open_http'
from /usr/local/lib/ruby/1.8/open-uri.rb:739:in `buffer_open'
from /usr/local/lib/ruby/1.8/open-uri.rb:194:in `open_loop'
from /usr/local/lib/ruby/1.8/open-uri.rb:192:in `catch'
from /usr/local/lib/ruby/1.8/open-uri.rb:192:in `open_loop'
from /usr/local/lib/ruby/1.8/open-uri.rb:138:in `open_uri'
from /usr/local/lib/ruby/1.8/open-uri.rb:641:in `open'
from /usr/local/lib/ruby/1.8/open-uri.rb:30:in `open'
from -e:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment