Improve ssl option in connect

Allows passing OpenSSL::SSL::SSLContext with customized parameters