# Openssl examples and docs

**URL:** <https://rubytalk.org/t/openssl-examples-and-docs/13776>\
**Category:** ruby-talk\
**Created:** [24 September 2004 17:54 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776 "2004-09-24T17:54:31Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [24 September 2004 17:54 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/1 "2004-09-24T17:54:31Z")

</div>

any pointers other than the cvs site and rdoc stuff?

-a

> **···**
>
> # --
> 
> > EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov  
> > PHONE :: 303.497.6469  
> > A flower falls, even though we love it;  
> > and a weed grows, even though we do not love it. --Dogen
> 
> ===============================================================================

---

<div class="post-metadata">

**Author:** ![Jamis\_Buck4](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@Jamis\_Buck4](https://rubytalk.org/u/Jamis_Buck4)\
**Post date:** [24 September 2004 18:21 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/2 "2004-09-24T18:21:32Z")

</div>

Ara.T.Howard wrote:

> any pointers other than the cvs site and rdoc stuff?
> 
> -a

My experience with Net::SSH was that there is pitifully little helpful documentation for the OpenSSL ruby module. ☹ I finally had to go to [http://www.openssl.org](http://www.openssl.org) and read those docs, and then dig into the ruby module source code to see how it corresponded to the OpenSSL API... it was not very fun.

If you have any specific questions, I may be able to help. There are a few others on this list that are much more proficient at it than I am, though, and they will almost certainly be able to answer anything that I can't.

- Jamis

> **···**
>
> --  
> Jamis Buck  
> jgb3@email.byu.edu  
> [http://www.jamisbuck.org/jamis](http://www.jamisbuck.org/jamis)
> 
> "I use octal until I get to 8, and then I switch to decimal."

---

<div class="post-metadata">

**Author:** ![David\_Ross2](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@David\_Ross2](https://rubytalk.org/u/David_Ross2)\
**Post date:** [24 September 2004 20:05 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/3 "2004-09-24T20:05:42Z")

</div>

what information are you looking for specifically?

--dross

> **···**
>
> --- "Ara.T.Howard" \<Ara.T.Howard@noaa.gov\> wrote:
> 
> > any pointers other than the cvs site and rdoc stuff?
> > 
> > -a  
> > --
> 
> ===============================================================================
> 
> > \> EMAIL :: Ara [dot] T [dot] Howard [at] noaa  
> > [dot] gov  
> > \> PHONE :: 303.497.6469  
> > \> A flower falls, even though we love it;  
> > \> and a weed grows, even though we do not love it.  
> > \> --Dogen
> 
> ===============================================================================
> 
> > 
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Do you Yahoo!?  
> Yahoo! Mail - 50x more storage than other providers!  
> [http://promotions.yahoo.com/new\_mail](http://promotions.yahoo.com/new_mail)

---

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [25 September 2004 04:09 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/4 "2004-09-25T04:09:48Z")

</div>

What kind of things are you looking to do with it?

WEBrick uses OpenSSL for SSL/TLS, and the DRbSSL protocol uses it to perform both server verification and client authentication. There are several examples in the /samples/openssl directory, as well.

[PGP.sig](https://rubytalk.org/uploads/short-url/odLWk8GUVHsTZReUFGKlCe7Co1m.sig) (186 Bytes)

> **···**
>
> On Sep 24, 2004, at 10:54 AM, Ara.T.Howard wrote:
> 
> > any pointers other than the cvs site and rdoc stuff?
> 
> --  
> Eric Hodel - drbrain@segment7.net - [http://segment7.net](http://segment7.net)  
> All messages signed with fingerprint:  
> FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04

---

<div class="post-metadata">

**Author:** ![Paul\_Duncan](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@Paul\_Duncan](https://rubytalk.org/u/Paul_Duncan)\
**Post date:** [24 September 2004 19:15 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/5 "2004-09-24T19:15:26Z")

</div>

> Ara.T.Howard wrote:  
> \>  
> \>any pointers other than the cvs site and rdoc stuff?  
> \>  
> \>-a
> 
> My experience with Net::SSH was that there is pitifully little helpful  
> documentation for the OpenSSL ruby module. ☹ I finally had to go to  
> [http://www.openssl.org](http://www.openssl.org) and read those docs, and then dig into the ruby  
> module source code to see how it corresponded to the OpenSSL API... it  
> was not very fun.

In my experience, looking for documentation on the less commonly used  
functions in OpenSSL (the OCSP API, for example), is a frustrating  
experience.

> If you have any specific questions, I may be able to help. There are a  
> few others on this list that are much more proficient at it than I am,  
> though, and they will almost certainly be able to answer anything that I  
> can't.
> 
> - Jamis
> 
> --  
> Jamis Buck  
> jgb3@email.byu.edu  
> [http://www.jamisbuck.org/jamis](http://www.jamisbuck.org/jamis)
> 
> "I use octal until I get to 8, and then I switch to decimal."

Shouldn't that be "until I get to 7"?

> **···**
>
> \* Jamis Buck (jgb3@email.byu.edu) wrote:
> 
> --  
> Paul Duncan \<pabs@pablotron.org\> pabs in #ruby-lang (OPN IRC)  
> [http://www.pablotron.org/](http://www.pablotron.org/) OpenPGP Key ID: 0x82C29562

---

<div class="post-metadata">

**Author:** ![Paul\_Duncan](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@Paul\_Duncan](https://rubytalk.org/u/Paul_Duncan)\
**Post date:** [24 September 2004 19:21 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/6 "2004-09-24T19:21:17Z")

</div>

[snipped]

> In my experience, looking for documentation on the less commonly used  
> functions in OpenSSL (the OCSP API, for example), is a frustrating  
> experience.

Pardon my redundant redundancy :D.

[snipped]

> **···**
>
> \* Paul Duncan (pabs@pablotron.org) wrote:
> 
> > --  
> > Paul Duncan \<pabs@pablotron.org\> pabs in #ruby-lang (OPN IRC)  
> > [http://www.pablotron.org/](http://www.pablotron.org/) OpenPGP Key ID: 0x82C29562
> 
> --  
> Paul Duncan \<pabs@pablotron.org\> pabs in #ruby-lang (OPN IRC)  
> [http://www.pablotron.org/](http://www.pablotron.org/) OpenPGP Key ID: 0x82C29562

---

<div class="post-metadata">

**Author:** ![Jamis\_Buck4](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@Jamis\_Buck4](https://rubytalk.org/u/Jamis_Buck4)\
**Post date:** [24 September 2004 19:25 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/7 "2004-09-24T19:25:47Z")

</div>

Paul Duncan wrote:

> > "I use octal until I get to 8, and then I switch to decimal."
> 
> Shouldn't that be "until I get to 7"?

Depends on how you are understanding "until". 🙂 Pseudocode:

&nbsp;&nbsp;&nbsp;i = 0  
&nbsp;&nbsp;&nbsp;until i == 8  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;puts "%o" % i  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i += 1  
&nbsp;&nbsp;&nbsp;end  
&nbsp;&nbsp;&nbsp;puts "%d" % i

It's probably time to change my sig, anyway. I've been getting too many raised eyebrows from it. 🙂 It was meant humorously.

> **···**
>
> > \* Jamis Buck (jgb3@email.byu.edu) wrote:
> 
> --  
> Jamis Buck  
> jgb3@email.byu.edu  
> [http://www.jamisbuck.org/jamis](http://www.jamisbuck.org/jamis)
> 
> "I use octal until I get to 8, and then I switch to decimal."

---

<div class="post-metadata">

**Author:** ![Carl\_Youngblood1](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@Carl\_Youngblood1](https://rubytalk.org/u/Carl_Youngblood1)\
**Post date:** [24 September 2004 19:44 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/8 "2004-09-24T19:44:13Z")

</div>

> It's probably time to change my sig, anyway. I've been getting too many  
> raised eyebrows from it. 🙂 It was meant humorously.

I find that sigs pigeonhole me, much like bumper stickers or T-shirts  
with slogans. I try to avoid them.

---

<div class="post-metadata">

**Author:** ![Paul\_Duncan](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@Paul\_Duncan](https://rubytalk.org/u/Paul_Duncan)\
**Post date:** [24 September 2004 19:47 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/9 "2004-09-24T19:47:07Z")

</div>

> Paul Duncan wrote:
> 
> \>\>"I use octal until I get to 8, and then I switch to decimal."  
> \>  
> \>Shouldn't that be "until I get to 7"?  
> \>
> 
> Depends on how you are understanding "until". 🙂 Pseudocode:
> 
> &nbsp;&nbsp;i = 0  
> &nbsp;&nbsp;until i == 8  
> &nbsp;&nbsp;&nbsp;&nbsp;puts "%o" % i  
> &nbsp;&nbsp;&nbsp;&nbsp;i += 1  
> &nbsp;&nbsp;end  
> &nbsp;&nbsp;puts "%d" % i

I see an opportunity for golfing!

&nbsp;&nbsp;puts (0..8).map { |i| (i \< 8 ? '%o' : '%d') % i }

> It's probably time to change my sig, anyway. I've been getting too many  
> raised eyebrows from it. 🙂 It was meant humorously.

I think it's funny :D.

> **···**
>
> \* Jamis Buck (jgb3@email.byu.edu) wrote:
> 
> > \>\* Jamis Buck (jgb3@email.byu.edu) wrote:
> 
> > --  
> > Jamis Buck  
> > jgb3@email.byu.edu  
> > [http://www.jamisbuck.org/jamis](http://www.jamisbuck.org/jamis)
> > 
> > "I use octal until I get to 8, and then I switch to decimal."
> 
> --  
> Paul Duncan \<pabs@pablotron.org\> pabs in #ruby-lang (OPN IRC)  
> [http://www.pablotron.org/](http://www.pablotron.org/) OpenPGP Key ID: 0x82C29562

---

<div class="post-metadata">

**Author:** ![Jamis\_Buck4](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@Jamis\_Buck4](https://rubytalk.org/u/Jamis_Buck4)\
**Post date:** [24 September 2004 20:05 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/10 "2004-09-24T20:05:19Z")

</div>

Carl Youngblood wrote:

> > It's probably time to change my sig, anyway. I've been getting too many  
> > raised eyebrows from it. 🙂 It was meant humorously.
> 
> I find that sigs pigeonhole me, much like bumper stickers or T-shirts  
> with slogans. I try to avoid them.

To each his own. I find them fun, or thought-provoking. Some of the best laughs I've had have been reading sig-lines on Slashdot posts. 🙂

- Jamis

> **···**
>
> --  
> Jamis Buck  
> jgb3@email.byu.edu  
> [http://www.jamisbuck.org/jamis](http://www.jamisbuck.org/jamis)

---

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [24 September 2004 20:05 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/11 "2004-09-24T20:05:29Z")

</div>

luckily for me i'm a pigeon.

😉

-a

> **···**
>
> On Sat, 25 Sep 2004, Carl Youngblood wrote:
> 
> > > It's probably time to change my sig, anyway. I've been getting too many  
> > > raised eyebrows from it. 🙂 It was meant humorously.
> > 
> > I find that sigs pigeonhole me, much like bumper stickers or T-shirts  
> > with slogans. I try to avoid them.
> 
> # --
> 
> > EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov  
> > PHONE :: 303.497.6469  
> > A flower falls, even though we love it;  
> > and a weed grows, even though we do not love it. --Dogen
> 
> ===============================================================================

---

<div class="post-metadata">

**Author:** ![Jamis\_Buck4](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@Jamis\_Buck4](https://rubytalk.org/u/Jamis_Buck4)\
**Post date:** [24 September 2004 20:05 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/12 "2004-09-24T20:05:50Z")

</div>

Paul Duncan wrote:

> **···**
>
> > \* Jamis Buck (jgb3@email.byu.edu) wrote:
> > 
> > > Paul Duncan wrote:
> > > 
> > > > \* Jamis Buck (jgb3@email.byu.edu) wrote:
> > > 
> > > > > "I use octal until I get to 8, and then I switch to decimal."
> > > > 
> > > > Shouldn't that be "until I get to 7"?
> > > 
> > > Depends on how you are understanding "until". 🙂 Pseudocode:
> > > 
> > > i = 0  
> > > until i == 8  
> > > &nbsp;&nbsp;&nbsp;puts "%o" % i  
> > > &nbsp;&nbsp;&nbsp;i += 1  
> > > end  
> > > puts "%d" % i
> > 
> > I see an opportunity for golfing!
> > 
> > &nbsp;&nbsp;puts (0..8).map { |i| (i \< 8 ? '%o' : '%d') % i }
> 
> 😃 Hole in one (line)! \*clap\* \*clap\* \*clap\*
> 
> --  
> Jamis Buck  
> jgb3@email.byu.edu  
> [http://www.jamisbuck.org/jamis](http://www.jamisbuck.org/jamis)

---

<div class="post-metadata">

**Author:** ![Carl\_Youngblood1](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@Carl\_Youngblood1](https://rubytalk.org/u/Carl_Youngblood1)\
**Post date:** [25 September 2004 18:03 UTC](https://rubytalk.org/t/openssl-examples-and-docs/13776/13 "2004-09-25T18:03:14Z")

</div>

That said, I actually do find many of your guys's sigs quite fun and  
thought-provoking. So please ignore my rambling pontifications.

> **···**
>
> On Sat, 25 Sep 2004 05:05:29 +0900, ara.t.howard@noaa.gov \<ara.t.howard@noaa.gov\> wrote:
> 
> > On Sat, 25 Sep 2004, Carl Youngblood wrote:
> > 
> > \>\> It's probably time to change my sig, anyway. I've been getting too many  
> > \>\> raised eyebrows from it. 🙂 It was meant humorously.  
> > \>  
> > \> I find that sigs pigeonhole me, much like bumper stickers or T-shirts  
> > \> with slogans. I try to avoid them.
> > 
> > luckily for me i'm a pigeon.
> > 
> > 😉
> > 
> > # -a --
> > 
> > # \> EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov \> PHONE :: 303.497.6469 \> A flower falls, even though we love it; \> and a weed grows, even though we do not love it. \> --Dogen
