dll - 在 DLL 文件已签名后对其进行签名?

标签 dll code-signing signtool

如果 DLL 已经签名而无需重新编译,我是否可以使用新证书(使用 Microsoft 的 SignTool)安全地签名 DLL 文件?

一切外观我这样做后是犹太洁食,但我想 100% 确定。

最佳答案

只要SignTool,就可以将数字签名附加到DLL 中。以下选项用于签名:

/as
Appends this signature. If no primary signature is present, this signature is made the primary signature.



多次签名操作不会覆盖/替换签名。

您可能想引用 Can I remove a digital signature from a DLL?以供进一步引用。

Unsigntool允许从 PE 部分删除签名 - 我从未使用过它,也不推荐使用此程序,因此,使用风险自负 .

使用或不使用 /as 签名两次的文件之间的差异 - 如果有的话可以使用某些工具(例如 PE Explorer/PE Viewer)查看参数,这些工具允许查看可执行文件或 DLL 的 PE 部分。

关于dll - 在 DLL 文件已签名后对其进行签名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33754698/

相关文章:

macos - 使用 install4j 签名的 Mac 安装程序未签名

ios - IONIC 应用程序未在 iPhone 设备 Xcode 10 中运行

xcode4 - xcodebuild/Jenkins 找不到 iOS 作业的 PROVISIONING_PROFILE

windows - "Error: SignerSign() failed."(-2147023673/0x800704c7)

windows - 成功运行 signTool 后发布者未知

java - 在ubuntu中执行jar包括dll库

c++ - 如何找出在 DLL 中调用了哪些函数?

powershell - Signtool 允许我签署代码,但 Set-AuthenticodeSignature 说 "certificate is not suitable for code signing"

c++ - 无法从 MFC DLL 创建模式对话框

c++ - Visual Studio,未找到 .dll(从未要求过)