# OpenSSL

**URL:** <https://www.ruby-forum.com/t/openssl/113986>\
**Category:** Ruby\
**Created:** [September 6, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/openssl/113986 "2007-09-06T21:34:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glen\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/34f0e0/32.png) [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Post date:** [September 6, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/openssl/113986/1 "2007-09-06T21:34:06Z")

</div>

Does anyone know of a useful reference for Ruby’s OpenSSL libraries?  
I’m  
getting a useless error and the rdoc is effectively non-existant.

–  
“Hey brother Christian with your high and mighty errand, Your actions  
speak  
so loud, I can’t hear a word you’re saying.”

-Greg Graffin (Bad Religion)

---

<div class="post-metadata">

**Author:** ![Glen\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/34f0e0/32.png) [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Post date:** [September 6, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/openssl/113986/2 "2007-09-06T22:33:14Z")

</div>

Okay, after increasing frustration and trying the ssl.connect again I  
get an  
actual error message.

Errno::ECONNABORTED: An established connection was aborted by the  
software  
in your host machine.

Any ideas what could be killing the connection on my end? Keep in mind  
this  
is a Windows box (XP Service Pack 2). I get identical behavior on a Win  
2003 server machine.

The real odd thing is that the first time I try to connect (i.e. after  
restarting irb) I don’t get any real error message. Upon trying the  
connect  
call again I get the ECONNABORTED error.

On 9/6/07, Glen H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 

–  
“Hey brother Christian with your high and mighty errand, Your actions  
speak  
so loud, I can’t hear a word you’re saying.”

-Greg Graffin (Bad Religion)

---

<div class="post-metadata">

**Author:** ![Glen\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/34f0e0/32.png) [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Post date:** [December 21, 2009, 6:27am UTC](https://www.ruby-forum.com/t/openssl/113986/3 "2009-12-21T06:27:34Z")

</div>

On Dec 17, 8:58 pm, Ro [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
…

> Then I have successfully installed openssl (0.9.8) on a RedHat (i686)  
> but when I try to go in ruby/ext/openssl and make a
> 
> ruby extconf.rb  
> make  
> make install
> 
> He say things that I don’t understand…

Well you could try pasting the error messages here (at a guess you may  
not have the development headers for openssl (if you installed openssl  
via you distro’s package management system there may be a separate  
openssl-dev package or something like that))

Fred

> Any suggestion?  
> thanks in advance, really

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![Glen\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/34f0e0/32.png) [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Post date:** [December 21, 2009, 2:14pm UTC](https://www.ruby-forum.com/t/openssl/113986/4 "2009-12-21T14:14:05Z")

</div>

this solve yours problems:

install _openssl_:

```
./config --prefix=/usr/local --openssldir=/usr/local/ssl
make
make test
make install (as root)
./config shared --prefix=/usr/local --openssldir=/usr/local/ssl
make clean
make
make install (as root)
cd /usr/local/ssl/lib
cp * /usr/lib

```

To avoid getting the following error later when you compile OpenSSH:

```
configure: error: Your *OpenSSL* headers do
not match your library

```

copy all the SSL include files everywhere:

```
cd /home/tjnelson/*openssl*/*openssl*-*
cd include/*openssl*
cp * /usr/include
cp * /usr/local/ssl/include
cp * /usr/local/ssl/include/*openssl*

```

and then add /usr/local/ssl/lib to /etc/ld.so.conf and type

```
ldconfig

```

Then i returned to ruby-\*/ext/_openssl_ and ran:

ruby extconf.rb  
make clean  
make  
make install

2009/12/20 Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> > make install  
> > Any suggestion?  
> > For more options, visit this group at  
> > [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).
