How can I find exactly what my codesign identity is?

SirRupertIII picture SirRupertIII · May 16, 2013 · Viewed 9.9k times · Source

I need to know exactly what my codesign identity is. Where can I find that? And what is the usual format for a codesign identity? Thank you!

Answer

Taras Tsugrii picture Taras Tsugrii · Mar 8, 2017

You can run following command in your terminal to get a list of all codesign identities installed on your system:

security find-identity -v -p codesigning

The output will contain lines like:

1) 482348ADF834384843884934734 "iPhone Developer: John Smith (YTHGJFKTHG)"
2) 49u343943943943494387348738 ...

where the first part (482348ADF834384843884934734) is your codesign identity, which is passed as an argument to the --sign flag of codesign tool.