SSL

31 views
Skip to first unread message

ivanb

unread,
Jan 5, 2010, 2:32:10 AM1/5/10
to BERT-RPC
Hi.

Is it possible to use SSL with BERT RPC?

Is there any example for Ruby?

BR,
ivan

Ryan Tomayko

unread,
Jan 5, 2010, 3:10:07 PM1/5/10
to bert...@googlegroups.com
On Mon, Jan 4, 2010 at 11:32 PM, ivanb <ivan.b...@gmail.com> wrote:
> Hi.
>
> Is it possible to use SSL with BERT RPC?

I don't think any of the BERTRPC clients or servers have built in SSL
support but something like stunnel should work:

http://www.stunnel.org/

You'd need to run a separate stunnel daemon on both the client and
server but it's a fairly simple/reliable process once its up and
running.

> Is there any example for Ruby?

Check out the generic "using stunnel on both client and server when
neither speaks SSL" example here:

http://www.stunnel.org/examples/generic_tunnel.html

Thanks,
Ryan

b

unread,
Jan 6, 2010, 2:53:05 AM1/6/10
to BERT-RPC
TLS transport for BERT is straightforward with bertrem because it just
relies on EM: http://github.com/b/bertrem

If you add start_tls to the post_init method in the client (or just
call start_tls on the connection object) you should be on your way
(untested and I will add it properly in an upcoming release).
http://eventmachine.rubyforge.org/EventMachine/Connection.html#M000296


b

Reply all
Reply to author
Forward
0 new messages