Code signing question

David Dunham dunham at mac.com
Tue Dec 18 11:21:40 PST 2007


On 18 Dec 2007, at 10:56, Edward J. Stembler wrote:

> I want to code sign a test app CodeSignTest.app and I'm not sure  
> what I'm doing wrong.
>
> I was successfully able to import my company's Authenticode  
> certificate (issued by VeriSign) into the System keychain.  I set  
> it to "Always Trust" for code signing.
>
> When using the codesign command-line in Terminal, I'm not sure what  
> to enter as the identity for the -s flag.  Is it supposed to be the  
> certificate common name?  The common name of this certificate is  
> actually the name of my company.  I've tried several combinations of:
>
> codesign -s "MyCompany, Inc." CodeSignTest.app
> MyCompany, Inc.:  no such identity


I use

codesign --sign "GameHouse, Inc." "${BUILT_PRODUCTS_DIR}"/"$ 
{FULL_PRODUCT_NAME}"

where "GamHouse, Inc." is the name of the VeriSign-issued certificate  
in my keychain. So maybe you need to import it into your keychain,  
not the system? (I imported a .pfx file if I recall correctly.)

David Dunham   Macintosh Game Developer
GameHouse Studios     +1 206 926 5722     www.gamehouse.com
     "They said it couldn't be done but sometimes it doesn't
      work out that way." -- Casey Stengel



More information about the MacOSX-dev mailing list