Added rejectUnauthorized and changed ssl option names.