title: Determining codesigning identities from the command line?
body: <p>I'm trying to set up an automated way to sign my iOS apps. Before using codesign, is there a way to programmatically determine from the command line what my valid signing identities are?</p>
  
  <p>For example, for the command </p>
  
  <pre><code>codesign -v --sign "iPhone Distribution: Joe Developer" /path/to/app
  </code></pre>
  
  <p>How could I figure out that "iPhone Distribution: Joe Developer" is a valid identity?  How would I figure other valid identities?</p>
  
  <p>I'd prefer a way to do this from within a command line, but from within cocoa would work as well.</p>