Forum: Ruby on Rails OpenSSL: SSL_CTX_new:: library has no ciphers

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
496ed7f402fc56b1f997855941272ad4?d=identicon&s=25 Pete Forde (Guest)
on 2006-04-06 09:33
(Received via mailing list)
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
Bf66e10c8fc4abefebde0425e7f6f15a?d=identicon&s=25 Norman Timmler (Guest)
on 2006-04-06 14:25
(Received via mailing list)
Am Donnerstag, den 06.04.2006, 03:33 -0400 schrieb Pete Forde:
>    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 Timmler

http://blog.inlet-media.de
2c17b1c9b894c3fcdccec587f1b6ee31?d=identicon&s=25 Victor Grey (Guest)
on 2006-04-06 16:24
Pete Forde 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)
This topic is locked and can not be replied to.