I am having troubles notarizing an installer package.
I created an installer package using the pkgbuild and productbuild, and then I tried to notarize it with notarytool, but I got an error message.
The error message led me to Use a valid Developer ID certificate, which includes the statement
Sign installer packages with a Developer ID Installer certificate
The app is signed with the team Developer ID and is notarized (via Xcode).
I signed both packages (during pkgbuild and productbuild) with a certificate created when I clicked Mac Installer Distribution in the developer portal, and it created a certificate named "3rd Party Mac Developer Installer: my company"
Is this the wrong certificate?
If it is the wrong certificate, which one should I create in the developer portal? (I didn't see anything specified as "Developer ID Installer")
If it is the right certificate, any idea what I might have done wrong?
Note: The reason I am trying to notarize the installer package is because when I tried testing the installer in my test VM, I received the following message (I thought signing the pkg would have prevented this):