How to obtain codesigned application certificate info

后端 未结 2 821
既然无缘
既然无缘 2020-12-05 11:51

I am having a tough time finding an answer to my codesigning issues.

We have an application for Mac OS written under Cocoa. Finally - we did our codesigning, but i w

2条回答
  •  醉酒成梦
    2020-12-05 12:07

    If you're targeting 10.6+ you can use the code signing functions in the Security framework (documentation), in particular SecCodeCheckValidity. Otherwise, the source code to the code signing system is in libsecurity_codesigning.

    Since you're using the code signature to authenticate your code you should also validate the designated requirement with SecCodeCopyDesignatedRequirement.

提交回复
热议问题