productsign is not able to find cert from keychain

747 views Asked by At

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

Can you give us any on how to troubleshoot and fix this issue?

0

There are 0 answers