Authenti code或其他code签署Mac和Linux [英] Authenticode or other code signing for Mac and Linux

查看:180
本文介绍了Authenti code或其他code签署Mac和Linux的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么类似Authenti code为Mac和Linux?

Is there anything similar to Authenticode for Mac and Linux?

如果是的,任何人都可以指向一个示例代码段,preferably在C,对如何检查签名是否匹配?

If yes, could anyone point to a sample snippet, preferably in C, on how to check that the signature match?

感谢您

编辑:还有一个可能的答案在Mac的部分<一个href=\"http://stackoverflow.com/questions/1815506/how-to-obtain-$c$csigned-application-certificate-info\">here但我不知道这是否可以在纯C来完成。

There is one possible answer to the Mac part in here but I don't know whether this can be done in plain C.

推荐答案

在Mac上,你可以注册使用相同的Authenti code二进制文件的证书,你会在Windows上使用(至少我们做到这一点,它工作正常)

On the Mac you can sign your binaries with the same Authenticode cert you would use on Windows (at least we do this and it works fine).

您需要的证书(包括私钥)导入到你的钥匙串,然后用X code或<一个href=\"http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/$c$csign.1.html\"相对=nofollow> codesign 签署的二进制文件。

You need to import the certificate (including the private key) into your keychain and then use Xcode or codesign to sign the binary.

这篇关于Authenti code或其他code签署Mac和Linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆