title: Unable to 'codesign' installer package with valid installer certificate
body: <p>I am trying to produce a code-signed installer package for distribution outside the Mac Store. My keychain contains the 5 certificates you get when joining the Apple Developer program yesterday. I have to use the command line "codesign" tool to do this. This requires great craft because codesign's default mechanism for hooking up with the correct certificate does not discriminate between certificates with similar "common names"--that they all begin with "3rd Party Mac Developer" creates confusion for codesign's default setting. There are ways to deal with this, however, if you study the documentation (codesign's man page and Apple's technical document, "Code Signing"). When I follow the various instructions carefully my attempt still fails. Here's my terminal command line input (note that my certificate id is X-ed out):</p>
  
  <pre><code>codesign -s "3rd Party Mac Developer Installer: Antony Nispel (XXXXXXXXXX)" -v /Users/antonywallacenispel/Desktop/SpellAware
  _1.0/SpellAwareDistributionPackageStuff/SpellAware 
  </code></pre>
  
  <p>Here is the result:</p>
  
  <pre><code>3rd Party Mac Developer Installer: Antony Nispel (XXXXXXXXXX): this identity cannot be used for signing code
  </code></pre>
  
  <p>And when I try the more restrictive request:</p>
  
  <pre><code>codesign -s -i "3rd Party Mac Developer Installer: Antony Nispel (XXXXXXXXXX)" -v /Users/antonywallacenispel/Desktop/SpellAware_1.0/SpellAwareDistributionPackageStuff/SpellAware 
  </code></pre>
  
  <p>I get the following response:</p>
  
  <pre><code>-i: no identity found 
  </code></pre>
  
  <p>I assure you that my "identity" (the comon name of my installer certificate) is correct.</p>
  
  <p>I would appreciate any help.</p>