Supports option `rejectUnauthorized` to enable/disable validating certification