Allow SSL socket context to be specified as well