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). Jason -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: etimedout.diff URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100320/a702ddab/attachment.pl>
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). > > Jason > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100322/723bd15f/attachment.html>
OpenSSL is not complete yet --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Tue, Mar 23, 2010 at 12:50 AM, Jason Diller <jason at diller.ca> wrote:> 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). > > Jason > > > > _______________________________________________ > Ironruby-core mailing listIronruby-core at rubyforge.orghttp://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100323/33b77706/attachment.html>
IronRuby doesn''t fully implement OpenSLL class yet. Contributions would be appreciated :). Tomas 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). Jason _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100323/465f9274/attachment-0001.html>