Hi Guys!
I'm trying to use OpenSSL with Ruby 1.9.1 but each time it tells me
"SSLv3 read server certificate B: certificate verify failed
(OpenSSL::SSL::SSLError)".
Also, I had to copy ssleay32.dll and libeay32.dll else it wouldn't have
"worked"..
Here's the ruby code:
require 'net/https'
require 'uri'
uri = URI.parse(ARGV[0] || 'https://gmail.com/')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true if uri.scheme == "https" # enable SSL/TLS
http.start {
http.request_get(uri.path) {|res|
print res.body
}
}
Nothing complex, I just don't understand WHY it doesn't work?! If
someone could help me, I'd be verry happy, I really don't know what to
do...
···
--
Posted via http://www.ruby-forum.com/.