# Getting started with SSL and Ruby

**URL:** <https://www.ruby-forum.com/t/getting-started-with-ssl-and-ruby/84131>\
**Category:** Ruby\
**Created:** [February 1, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/getting-started-with-ssl-and-ruby/84131 "2007-02-01T18:50:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jake\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Post date:** [February 1, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/getting-started-with-ssl-and-ruby/84131/1 "2007-02-01T18:50:46Z")

</div>

Guys,

I’d like to learn more about programming with SSL and Ruby, but the only  
docs I’ve found so far are the API docs for the openssl lib, and they’re  
unfortunately not much help. Could anyone offer suggestions or links  
that  
might get me started? I understand SSL from a conceptual level, but have  
never tried to do it programatically.

Thanks!

Jake

---

<div class="post-metadata">

**Author:** ![Jake\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Post date:** [February 1, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/getting-started-with-ssl-and-ruby/84131/2 "2007-02-01T20:06:52Z")

</div>

On 2/1/07, Jake C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Guys,
> 
> I’d like to learn more about programming with SSL and Ruby, but the only  
> docs I’ve found so far are the API docs for the openssl lib, and they’re  
> unfortunately not much help. Could anyone offer suggestions or links that  
> might get me started? I understand SSL from a conceptual level, but have  
> never tried to do it programatically.

Have a look at webrick sources. It supports SSL so somewhere deep  
inside you’ll find it 😉

---

<div class="post-metadata">

**Author:** ![Jake\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Post date:** [February 1, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/getting-started-with-ssl-and-ruby/84131/3 "2007-02-01T21:25:03Z")

</div>

On Fri, Feb 02, 2007 at 02:50:24AM +0900, Jake C. wrote:

> I’d like to learn more about programming with SSL and Ruby, but the only  
> docs I’ve found so far are the API docs for the openssl lib, and they’re  
> unfortunately not much help. Could anyone offer suggestions or links that  
> might get me started? I understand SSL from a conceptual level, but have  
> never tried to do it programatically.

There’s some example server-side code in ruby-ldapserver (on rubyforge),  
and  
probably lots of other things.

---

<div class="post-metadata">

**Author:** ![Jake\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Post date:** [February 1, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/getting-started-with-ssl-and-ruby/84131/4 "2007-02-01T21:52:07Z")

</div>

On 2/1/07, Brian C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> There’s some example server-side code in ruby-ldapserver (on rubyforge),  
> and  
> probably lots of other things.

Brian,

Thanks…I’ll take a look. It appears you wrote this project, and i know  
you  
had to learn somewhere, so where did you start? Or had you done a lot of  
openssl programming in another language to the point that the Ruby libs  
made  
sense?

Thanks!  
Jake

---

<div class="post-metadata">

**Author:** ![Jake\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Post date:** [February 1, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/getting-started-with-ssl-and-ruby/84131/5 "2007-02-01T22:07:14Z")

</div>

On Fri, Feb 02, 2007 at 05:51:59AM +0900, Jake C. wrote:

> Thanks…I’ll take a look. It appears you wrote this project, and i know you  
> had to learn somewhere, so where did you start? Or had you done a lot of  
> openssl programming in another language to the point that the Ruby libs made  
> sense?

I just dug around the openssl source in Ruby. On my Ubuntu system I  
find:

/usr/share/doc/libopenssl-ruby1.8/examples/c\_rehash.rb  
/usr/share/doc/libopenssl-ruby1.8/examples/cert2text.rb  
/usr/share/doc/libopenssl-ruby1.8/examples/cert\_store\_view.rb  
/usr/share/doc/libopenssl-ruby1.8/examples/certstore.rb  
/usr/share/doc/libopenssl-ruby1.8/examples/cipher.rb  
/usr/share/doc/libopenssl-ruby1.8/examples/crlstore.rb  
/usr/share/doc/libopenssl-ruby1.8/examples/echo\_cli.rb  
/usr/share/doc/libopenssl-ruby1.8/examples/echo\_svr.rb  
/usr/share/doc/libopenssl-ruby1.8/examples/gen\_csr.rb  
/usr/share/doc/libopenssl-ruby1.8/examples/smime\_read.rb  
/usr/share/doc/libopenssl-ruby1.8/examples/smime\_write.rb  
/usr/share/doc/libopenssl-ruby1.8/examples/wget.rb

echo\_cli.rb and echo\_svr.rb are good starting points.

HTH,

Brian.

---

<div class="post-metadata">

**Author:** ![Jake\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Post date:** [February 1, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/getting-started-with-ssl-and-ruby/84131/6 "2007-02-01T22:17:15Z")

</div>

On 2/1/07, Brian C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> echo\_cli.rb and echo\_svr.rb are good starting points.

Brian,

That’s perfect! Thanks!

Jake
