We are trying to sign a Mac installer (.pkg file) using the following command.
productsign --sign "Developer ID Installer: MyCompany, Inc." unsigned_installer.pkg signed_package.pkg
But we are getting the following error.
productsign: error: Could not find appropriate signing identity for “Developer ID Installer: MyCompany, Inc.”.
When we try to find the certificates using
security -v find-identity -p codesigning
, we get the following output.Policy: Code Signing
Matching identities
1) 1234....6789 "MyCompany, Inc."
1 identities found
Valid identities only
1) 1234....6789 "MyCompany, Inc."
1 valid identities found
When tried as:
productsign --sign "commonName" unsigned.pkg signed.pkg
We get error as :
productsign: error: Could not find appropriate signing identity for “commonName”. An installer signing identity (not an application signing identity) is required for signing flat-style products.
Can you give us any on how to troubleshoot and fix this issue?