Post not yet marked as solved
Post marked as unsolved with 3 replies, 5,528 views
I am trying to translate a working codesigning mechanism into our CI process.
I add the cert using the following.
sudo security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain-db developerID_application.cer
But, when I check it, it is not recognized for codesigning.
$ security find-identity -p codesigning
Policy: Code Signing
	Matching identities
		 0 identities found
	Valid identities only
		 0 valid identities found
And subsequent codesign fails with
error: The specified item could not be found in the keychain.
Compared to what I am doing in the working mechanism on my desktop, only missing step seems to be signing to my developer account on xcode. But, not sure if that is the issue, or if so, not sure how you can do that from command line.