allows rejectUnauthorized to be set, which allows the client to conenct to a self signed cert