# Ssl demo

**URL:** <https://www.ruby-forum.com/t/ssl-demo/194926>\
**Category:** Ruby\
**Created:** [September 13, 2010, 10:10pm UTC](https://www.ruby-forum.com/t/ssl-demo/194926 "2010-09-13T22:10:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [September 13, 2010, 10:10pm UTC](https://www.ruby-forum.com/t/ssl-demo/194926/1 "2010-09-13T22:10:31Z")

</div>

i want to use ssl for application to application encryption. for eg. i  
can have a server running at port 1021 running ssl. i want the clients  
connecting to it to use its public key for sending data.  
i am at a concept level and would love to see any technical specifics  
that exists in ruby so i can build a prototype.  
any ideas

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [September 14, 2010, 12:50am UTC](https://www.ruby-forum.com/t/ssl-demo/194926/2 "2010-09-14T00:50:55Z")

</div>

Junkone wrote:

> i want to use ssl for application to application encryption. for eg. i  
> can have a server running at port 1021 running ssl. i want the clients  
> connecting to it to use its public key for sending data.  
> i am at a concept level and would love to see any technical specifics  
> that exists in ruby so i can build a prototype.  
> any ideas

> **[LMGTFY - Let Me Google That For You](https://lmgtfy.app/?q=ruby%2Bssl)**
>
> For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [September 14, 2010, 10:17am UTC](https://www.ruby-forum.com/t/ssl-demo/194926/3 "2010-09-14T10:17:05Z")

</div>

Junkone wrote:

> i want to use ssl for application to application encryption. for eg. i  
> can have a server running at port 1021 running ssl. i want the clients  
> connecting to it to use its public key for sending data.  
> i am at a concept level and would love to see any technical specifics  
> that exists in ruby so i can build a prototype.

ruby-ldapserver is some code I wrote years ago, but it has SSL server  
functionality; you can dig through the code to find it (it’s pretty  
simple really).

It supports two modes: start SSL immediately (like LDAPS on port 636 or  
HTTPS on port 443), or SSL upgrade within a session on request.
