the book discusses how to process a website that has its traffic not encrypted under SSL: e.g.
nokogiri http://www.example.com works, but not
A more verbose error text:
C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:923:in connect’: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
block in connect'
from C:/Ruby22-x64/lib/ruby/2.2.0/timeout.rb:73:in timeout’
from C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:863:in do_start’
from C:/Ruby22-x64/lib/ruby/2.2.0/open-uri.rb:318:in open_http’
from C:/Ruby22-x64/lib/ruby/2.2.0/open-uri.rb:211:in block in open_loop’
from C:/Ruby22-x64/lib/ruby/2.2.0/open-uri.rb:209:in open_loop’
from C:/Ruby22-x64/lib/ruby/2.2.0/open-uri.rb:716:in open’
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.8-x64-mingw32/bin/nokogiri:96:in <top (required)>’
from C:/Ruby22-x64/bin/nokogiri:22:in '`
I initially thought it is an issue that is Windows specific, especially because I could not (but wanted to update Nokogiri). I followed http://guides.rubygems.org/ssl-certificate-update/#installing-using-update-packages which resulted in me being able to upgrade the gems. But Nokogiri refuses to work.