added support for rejectUnauthorized for devMode