This is a set of libtls bindings for Ruby, plus a nice object-oriented layer atop the bindings.
libtls
Mike Burns
ISC