Mac App Store 代码签名由 Lion 检查还是我们必须这样做?
Mac App Store 有很多用于收据验证的代码(例如:NPReceiptVerification)。但我不应该检查代码签名是否正确吗?
Lion 是否会在启动时检查代码签名并拒绝启动?如果有的话,我看不出有什么理由不这样做。看起来它没有检查我的简单测试中的签名。
如果有人更改 Info.plist 代码签名验证会失败吗? - OK,我自己回答了这一问题:“应用程序包的各种组件(例如 Info.plist 文件,如果有的话)也已签名”(来自 Apple 开发人员的“关于代码签名”)。
There is lots of code around for receipt validation (e.g.: NPReceiptVerification) for the Mac App Store. But should I not also check that the code signature is correct?
Does Lion check the code signature on launch and refuse to launch? I don't see a reason why not, if there is one there. It looks like it does not check the signature from my simple test.
If someone changes the Info.plist will code sign verification fail? - OK answered that one myself: "Various components of the application bundle (such as the Info.plist file, if there is one) are also signed" from "About Code Signing" at Apple developer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在对应用程序进行代码签名时设置
kill
和hard
标志,则当其代码签名无效(或变得)无效时,launchd
将终止该应用程序。If you set the
kill
andhard
flags when code signing the app,launchd
will kill the app if its code signature is (or becomes) invalid.