Ssl support

First stab at [RUBY-22]