签署 WIN CE .cab 文件以及里面的所有文件

发布于 2024-10-05 16:43:40 字数 131 浏览 0 评论 0原文

我有一家公司提供的 cab 文件,为了保护我的环境(终端),我需要对 cab 以及里面的所有文件(DLL 和 EXE)进行签名,我想避免取消和重新安装。有什么工具吗?我见过微软的signtool,我只能对cab进行签名,而不能对里面的文件进行签名。

I have a cab file provided by a company and in order to secure my environment (terminal) I need to sign the cab as well as all the files inside (DLLs and EXEs) I want to avoid uncabing and recabing to do it. Is there any tool? I've seen signtool from Microsoft I can only sign the cab, not the files inside.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月隐月明月朦胧 2024-10-12 16:43:40

您可以对文件进行签名,但前提是设备上的代码将解压这些文件,将签名的数据解包到原始文件中,然后安装它们。

说明:

  1. 一定有什么东西会
    验证签名。你可以
    签署 CAB,但如果系统
    不关心签名
    (假设允许用户安装
    未签名或签名错误的 CAB),然后
    你的签名毫无意义
    除非是你自己的代码
    执行 CAB 安装
  2. 您可以签署任何文件,但随后
    再说一遍,一定有什么东西(你的
    代码?)这将验证
    签名。对于 PKCS#7
    (基于证书)签名你可以
    使用包装签名使得
    文件原始数据部分
    签名文件或独立签名,
    分别保存在
    不同的地方(例如其他文件)。在
    包装签名您的代码的情况
    之后需要解开文件
    从 CAB 中提取它们。

You can sign the files BUT ONLY if it's your code on the device which will unpack them, unwrap the signed data into original files and then install them.

Explanation:

  1. there must be something that will
    validate the signatures. You can
    sign the CAB, but if the system
    doesn't care about the signature
    (say allows the user to install the
    unsigned or badly-signed CABs), then
    your signature makes little sense
    unless it's your own code that
    performs CAB installation
  2. You can sign any file, but then
    again, there must be something (your
    code?) that will validate the
    signatures. For PKCS#7
    (certificate-based) signing you can
    use wrapping signatures which make
    the file original data part of the
    signed file, or detached signatures,
    which are kept separately in the
    different place (eg. other file). In
    case of wrapping signature your code
    needs to unwrap the files after
    extracting them from the CAB.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文