OpenSSL: SSL_CTX_new:: library has no ciphers

I’m trying to do a basic get or post operation using Net::HTTP in SSL
mode.

I’m on TextDrive, which runs ruby 1.8.2; however, I have the /net folder
from ruby 1.8.4 in my /lib to support net/https, which doesn’t appear to
be
present in 1.8.2.

http = Net::HTTP.new “www.beanstream.com”, 443

http.use_ssl = true
http.start {
http.request_get(“/scripts/process_transaction?” + @data) {|res|
@response_plain = res.body
}
}

When I try to run this code, it craps out at the http.start. I’ve tried
several iterations and examples; either OpenSSL fails, or 1.8.2 doesn’t
support use_ssl and there is no net/https.rb in 1.8.2.

Possible solutions:

  1. What can I do to make this work on TextDrive?
  2. What other possible options to I have to make this https request and
    fetch the results. At this point, I’m not above ugly hacks - I’m on a
    deadline, and this is killing me.

Regards,
Pete

Am Donnerstag, den 06.04.2006, 03:33 -0400 schrieb Pete F.:

http.request_get(“/scripts/process_transaction?” + @data) {|res|
2. What other possible options to I have to make this https request and
fetch the results. At this point, I’m not above ugly hacks - I’m on a
deadline, and this is killing me.

I had the same problem some time ago (not on TextDrive) and remember
that this was a version problem. I can’t remember if downgrading the
openssl lib or the openssl-ruby bindings helped. Openssl 0.9.7g did not
have this failure.


Norman T.

http://blog.inlet-media.de

Pete F. wrote:

http = Net::HTTP.new “www.beanstream.com”, 443

http.use_ssl = true
http.start {
http.request_get(“/scripts/process_transaction?” + @data) {|res|
@response_plain = res.body
}
}

This works for me with Ruby 1.8.2 on OS X and FreeBSD 4.11:

http = Net::HTTP.new(host, 443)
http.use_ssl = true
response = http.get2(path_and_query_string)