Code Signing Services

Posted by bogdan on Stack Overflow See other posts from Stack Overflow or by bogdan
Published on 2010-06-10T00:47:09Z Indexed on 2010/06/10 0:52 UTC
Read the original article Hit count: 360

Filed under:
|
|

I'm developing a System Preference Pane that runs a background application. I'm planning on codesigning the background application and I'll be using the kill flag of codesign (http://gemma.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/codesign.1.html). From my understanding, this kill flag will not allow the background application to be run if it's signature doesn't match.

My problem with this approach is that it doesn't provide any feedback to the user and, for somewhat reason, the application gets corrupted, it will refuse to launch without any information.

I'd like to use the Code Signing Service from the System Preference Pane to check the validity of the background application. However, I couldn't find how to use it to check the validity of an external file. Is this possible using the Code Signing Service or should I NSTask codesign directly?

My application is targeted for 10.6 so it doesn't matter which I use.

Thank you!

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa