Before you set the InternalLicensingEnabled parameter to true, you have to import at least one trusted publishing domain ...

Before you set the InternalLicensingEnabled parameter to true, you have to import at least one trusted publishing domain (TPD) into your organization using the Import-RMSTrustedPublishingDomain cmdlet. The imported TPD must have a key.