Skip to content

Instantly share code, notes, and snippets.

Created August 23, 2012 03:56
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 anonymous/3432113 to your computer and use it in GitHub Desktop.
Save anonymous/3432113 to your computer and use it in GitHub Desktop.
SSL error diagnostic 1
$ uname -srv
Darwin 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
$ gem -v
1.8.24
$ openssl version
OpenSSL 1.0.1c 10 May 2012
$ curl -I https://d2chzxaqi4y7f8.cloudfront.net/gems/rake-0.9.2.2.gem
HTTP/1.0 200 OK
x-amz-id-2: AGU8Yf1d9VRdsKQHSwKSb81BQt4i/o822+1Q6HyhuZTdvejSrPCTSmXYQ9/6M2MQ
x-amz-request-id: 0764820BBA5235A2
Date: Wed, 02 Nov 2011 14:21:55 GMT
Last-Modified: Sat, 22 Oct 2011 15:19:16 GMT
ETag: "28e731d5c59dd721d6387f80b25a2ba1"
Accept-Ranges: bytes
Content-Type: binary/octet-stream
Content-Length: 111616
Server: AmazonS3
Age: 61788
X-Cache: Hit from cloudfront
X-Amz-Cf-Id: xENQ5lNwWEltbHk2jlJ2PpMq5XDc-RJLmDe0XltzuhGotaqcp31c4w==
Via: 1.0 594ce62ebf3e5efbfecbe6261aaf2f84.cloudfront.net:11180 (CloudFront), 1.0 0a65cba27376ea639b1f91e8b2ce1450.cloudfront.net (CloudFront)
Connection: close
$ ruby -rrubygems/remote_fetcher -e 'p Gem::RemoteFetcher.new.fetch_http(URI.parse("https://d2chzxaqi4y7f8.cloudfront.net/gems/rake-0.9.2.2.gem")).bytesize'
Fetching: rake-0.9.2.2.gem (100%)
111616
$ ruby -d -rrubygems/remote_fetcher -e 'p Gem::RemoteFetcher.new.fetch_http(URI.parse("https://d2chzxaqi4y7f8.cloudfront.net/gems/rake-0.9.2.2.gem")).bytesize'
Exception `LoadError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb:1264 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb:1273 - cannot load such file -- rubygems/defaults/ruby
Exception `Gem::LoadError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247 - Could not find psych (>= 1.2.1, ~> 1.2) amongst [bundler-1.1.5, rake-0.9.2.2, rubygems-bundler-1.0.7, rvm-1.11.3.5]
Exception `NameError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/core_ext.rb:16 - method `to_yaml' not defined in Object
Exception `NameError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/core_ext.rb:29 - method `yaml_as' not defined in Module
Exception `NameError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/deprecated.rb:79 - undefined method `to_yaml_properties' for class `Object'
Exception `NameError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/syck_hack.rb:20 - constant Psych::Syck not defined
Exception `NameError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/syck_hack.rb:42 - method `to_s' not defined in Syck::DefaultKey
Exception `ArgumentError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/scalar_scanner.rb:91 - invalid value for Integer(): "--no-rdoc --no-ri"
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Fetching: rake-0.9.2.2.gem ( 15%)Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Fetching: rake-0.9.2.2.gem ( 29%)Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Fetching: rake-0.9.2.2.gem ( 44%)Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Fetching: rake-0.9.2.2.gem ( 59%)Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Fetching: rake-0.9.2.2.gem ( 73%)Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Fetching: rake-0.9.2.2.gem ( 88%)Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
Fetching: rake-0.9.2.2.gem (100%)
111616
$ ruby -rrbconfig -e 'p Dir.glob(File.join(RbConfig::CONFIG["sitelibdir"], "rubygems/ssl_certs/*"))'
["/Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/ssl_certs/ca-bundle.pem"]
$ ruby -rhttpclient -e 'h = HTTPClient.new; h.ssl_config.verify_callback = proc { |ok, ctx|; p ctx.current_cert; ok }; h.get("https://d2chzxaqi4y7f8.cloudfront.net/gems/rake-0.9.2.2.gem")'
/Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- httpclient (LoadError)
from /Users/simon/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment