[Ironruby-core] ETIMEDOUT error code
Tomas.Matousek at microsoft.com
Mon Mar 22 20:09:40 EDT 2010
IronRuby doesn't fully implement OpenSLL class yet. Contributions would be appreciated :).
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jason Diller
Sent: Monday, March 22, 2010 4:51 PM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] ETIMEDOUT error code
Further to my previous question about SSL. here are the details of what is failing:
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
#the following line causes a 'nomethoderror' because ca_file is undefined
http.ca_file = File.dirname(__FILE__) + 'somecert.pem'
If I attempt to work around that error by omitting setting the ca_file and setting the verify_mode to VERIFY_NONE I later (from the 'connect' method in http.rb) get a NameError because OpenSSL::SSL::SSLSocket is also undefined.
I'm wondering if I'm missing an OpenSSL library/gem or if the SSL support is still to come in IronRuby. Could someone poke me in the right direction?
On 20/03/2010 5:56 PM, Jason Diller wrote:
I have been attempting to get an existing Ruby lib running under
IronRuby. The first problem I hit was that there was no definition for
the ETIMEDOUT error code in IR, so I added it and humbly submit my
changes as a patch for your consideration.
I'm currently running into problems because the library I'm using makes
HTTPS calls and from my point of view as a raw noob to both IR and Ruby
itself it appears that HTTPS support (via OpenSSL?) is missing from
IronRuby. Is this the case? (I'm sure there's a better than zero chance
that I'm just missing a dependency of some sort as well).
Ironruby-core mailing list
Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core