title: modify per-application access control for private key via command line?
body: <p>I have a cert in a key chain that contains a private key.  I'd like to add an application to the access control "white list" for that key.  I know how to do this using the graphical key chain tool, but I'd like to do it via the command line as part of an Xcode build script.</p>
  
  <p>From what I can tell the "security" command is the way to manipulate key chains at the command line, but I can't figure out from the man page how I'd go about accomplishing this task.</p>
  
  <p>For completeness, here's exactly what I do in the key chain tool that I'd like to do via the command line:</p>
  
  <ol>
  <li>Click the cert to show its private key.</li>
  <li>Right-click the private key and select the "Get Info" menu item.</li>
  <li>Click the "Access Control" tab.</li>
  <li>Click the "+" button to add an application to the white list.</li>
  <li>Select the application (in my case Xcode) and click "Add".</li>
  </ol>
  
  <p>I might also be interested in how to allow access to all applications.</p>