# OpenSSL: SSL\_CTX\_new:: library has no ciphers

**URL:** <https://www.ruby-forum.com/t/openssl-ssl-ctx-new-library-has-no-ciphers/56986>\
**Category:** Rails\
**Created:** [April 6, 2006, 9:33am UTC](https://www.ruby-forum.com/t/openssl-ssl-ctx-new-library-has-no-ciphers/56986 "2006-04-06T09:33:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pete\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@Pete\_F](https://www.ruby-forum.com/u/Pete_F)\
**Post date:** [April 6, 2006, 9:33am UTC](https://www.ruby-forum.com/t/openssl-ssl-ctx-new-library-has-no-ciphers/56986/1 "2006-04-06T09:33:54Z")

</div>

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](http://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

---

<div class="post-metadata">

**Author:** ![Pete\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@Pete\_F](https://www.ruby-forum.com/u/Pete_F)\
**Post date:** [April 6, 2006, 2:25pm UTC](https://www.ruby-forum.com/t/openssl-ssl-ctx-new-library-has-no-ciphers/56986/2 "2006-04-06T14:25:04Z")

</div>

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](http://blog.inlet-media.de)

---

<div class="post-metadata">

**Author:** ![Pete\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@Pete\_F](https://www.ruby-forum.com/u/Pete_F)\
**Post date:** [April 6, 2006, 4:24pm UTC](https://www.ruby-forum.com/t/openssl-ssl-ctx-new-library-has-no-ciphers/56986/3 "2006-04-06T16:24:57Z")

</div>

Pete F. wrote:

> http = Net::HTTP.new “[www.beanstream.com](http://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)
