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.
Post
Replies
Boosts
Views
Activity
Is there a set of commands that I could use to code sign an macOS application deployed in a zip file?
Not having any luck following the documentation since they all refer to some steps being performed through UI.
I have an environment in Circleci where I am doing the build. Trying to now codesign the built image, I am unable to find any documentation that I can codesign completely from the command line.
I have tried
codesign
to codesign my application, but, I am unable to get them to recognize my cert that I added using
security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain developerID_application.cer
Any pointers would be much appreciated.