• <tfoot id='WJn5Q'></tfoot>

    1. <legend id='WJn5Q'><style id='WJn5Q'><dir id='WJn5Q'><q id='WJn5Q'></q></dir></style></legend>

    2. <small id='WJn5Q'></small><noframes id='WJn5Q'>

      <i id='WJn5Q'><tr id='WJn5Q'><dt id='WJn5Q'><q id='WJn5Q'><span id='WJn5Q'><b id='WJn5Q'><form id='WJn5Q'><ins id='WJn5Q'></ins><ul id='WJn5Q'></ul><sub id='WJn5Q'></sub></form><legend id='WJn5Q'></legend><bdo id='WJn5Q'><pre id='WJn5Q'><center id='WJn5Q'></center></pre></bdo></b><th id='WJn5Q'></th></span></q></dt></tr></i><div id='WJn5Q'><tfoot id='WJn5Q'></tfoot><dl id='WJn5Q'><fieldset id='WJn5Q'></fieldset></dl></div>
        <bdo id='WJn5Q'></bdo><ul id='WJn5Q'></ul>

      1. 在没有 CAPICOM 的情况下验证 EXE 上的 Authenticode 签

        时间:2023-08-01
      2. <small id='hqgkP'></small><noframes id='hqgkP'>

            <tbody id='hqgkP'></tbody>

          <i id='hqgkP'><tr id='hqgkP'><dt id='hqgkP'><q id='hqgkP'><span id='hqgkP'><b id='hqgkP'><form id='hqgkP'><ins id='hqgkP'></ins><ul id='hqgkP'></ul><sub id='hqgkP'></sub></form><legend id='hqgkP'></legend><bdo id='hqgkP'><pre id='hqgkP'><center id='hqgkP'></center></pre></bdo></b><th id='hqgkP'></th></span></q></dt></tr></i><div id='hqgkP'><tfoot id='hqgkP'></tfoot><dl id='hqgkP'><fieldset id='hqgkP'></fieldset></dl></div>
            <bdo id='hqgkP'></bdo><ul id='hqgkP'></ul>
            <tfoot id='hqgkP'></tfoot>

            • <legend id='hqgkP'><style id='hqgkP'><dir id='hqgkP'><q id='hqgkP'></q></dir></style></legend>

                  本文介绍了在没有 CAPICOM 的情况下验证 EXE 上的 Authenticode 签名 - C++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在为安装程序 DLL 编写一个函数,以验证系统上已安装的 EXE 文件的 Authenticode 签名.

                  I'm writing a function for an installer DLL to verify the Authenticode signature of EXE files already installed on the system.

                  函数需要:

                  A) 验证签名是否有效.
                  B) 验证签名者是我们的组织.

                  A) verify that the signature is valid.
                  B) verify that the signer is our organization.

                  因为这是在安装程序中,并且因为它需要在较旧的 Win2k 安装上运行,所以我不想依赖 CAPICOM.dll,因为它可能不在目标系统上.

                  Because this is in an installer, and because this needs to run on older Win2k installations, I don't want to rely on CAPICOM.dll, as it may not be on the target system.

                  WinVerifyTrust API 可以很好地解决(A).

                  The WinVerifyTrust API works great to solve (A).

                  我需要找到一种方法将已知证书(或其中的属性)与签署相关 EXE 的证书进行比较.

                  I need to find a way to compare a known certificate (or properties therein) to the one that signed the EXE in question.

                  推荐答案

                  你应该使用 CryptQueryObject.

                  这篇 KB 文章演示了用法:如何从 Authenticode 签名的可执行文件中获取信息.

                  This KB-article demonstrates the use: How To Get Information from Authenticode Signed Executables.

                  对于询问如何在没有 Windows-API 的情况下执行此操作的评论者,我不知道任何可以执行此操作的库,但此处记录了格式:Windows Authenticode 可移植可执行签名格式

                  To the commenter that asked about how to do it without the Windows-APIs, I am not aware of any library that can do it, but the format is documented here: Windows Authenticode Portable Executable Signature Format

                  这篇关于在没有 CAPICOM 的情况下验证 EXE 上的 Authenticode 签名 - C++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Win32:将窗口置于顶部 下一篇:Win32:如何通过 hWnd 在任务栏中隐藏 3rd 方窗口

                  相关文章

                  最新文章

                  1. <tfoot id='LSJtu'></tfoot>
                    • <bdo id='LSJtu'></bdo><ul id='LSJtu'></ul>

                    <legend id='LSJtu'><style id='LSJtu'><dir id='LSJtu'><q id='LSJtu'></q></dir></style></legend>
                    <i id='LSJtu'><tr id='LSJtu'><dt id='LSJtu'><q id='LSJtu'><span id='LSJtu'><b id='LSJtu'><form id='LSJtu'><ins id='LSJtu'></ins><ul id='LSJtu'></ul><sub id='LSJtu'></sub></form><legend id='LSJtu'></legend><bdo id='LSJtu'><pre id='LSJtu'><center id='LSJtu'></center></pre></bdo></b><th id='LSJtu'></th></span></q></dt></tr></i><div id='LSJtu'><tfoot id='LSJtu'></tfoot><dl id='LSJtu'><fieldset id='LSJtu'></fieldset></dl></div>

                    1. <small id='LSJtu'></small><noframes id='LSJtu'>