# Help with SSL and socket and certificate and idk

**URL:** <https://www.ruby-forum.com/t/help-with-ssl-and-socket-and-certificate-and-idk/118963>\
**Category:** Ruby\
**Created:** [November 1, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/help-with-ssl-and-socket-and-certificate-and-idk/118963 "2007-11-01T19:27:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trukin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a698b9/32.png) [@Trukin](https://www.ruby-forum.com/u/Trukin)\
**Post date:** [November 1, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/help-with-ssl-and-socket-and-certificate-and-idk/118963/1 "2007-11-01T19:27:06Z")

</div>

Hello,

I’ve got a little problem I need to solve. I need to write an  
application that connects to a SSL-secured server.

Pretty much, ive got to open a SSL-Secured socket, using a Certificate  
I obtained from the people I need to connect to. Do a handshake and  
send a command.

Btw, this connection is to an EPP server.

Any ideas of how to do it? If you have any ideas on writing it in  
another language, or if ruby is not the best language to use, please  
tell me.

Thank You

---

<div class="post-metadata">

**Author:** ![Trukin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a698b9/32.png) [@Trukin](https://www.ruby-forum.com/u/Trukin)\
**Post date:** [November 2, 2007, 1:35am UTC](https://www.ruby-forum.com/t/help-with-ssl-and-socket-and-certificate-and-idk/118963/2 "2007-11-02T01:35:43Z")

</div>

On Nov 1, 1:13 pm, Trukin [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Any ideas of how to do it? If you have any ideas on writing it in  
> another language, or if ruby is not the best language to use, please  
> tell me.
> 
> Thank You

Ruby has a working openssl library so, while I’m not sure that it’s  
the best language for what you are attempting, it should work.

The docs are here: [RDoc Documentation](http://ruby-doc.org/stdlib/) and there are examples  
included with the Ruby source (e.g. ruby-1.8.6/sample/openssl). You’ll  
probably want to check out the echo\_cli.rb example and it might be a  
good idea to check out O’Reilly’s ‘Network Security with OpenSSL’ if  
you aren’t familiar with using OpenSSL or SSL/TLS in general.
