我可以从 DLL 中删除数字签名吗? [英] Can I remove a digital signature from a DLL?

查看:49
本文介绍了我可以从 DLL 中删除数字签名吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的安装程序在构建过程中使用代码签名证书对 DLL 进行签名".

My installer build "signs" a DLL using a Code Signing certificate during the build process.

我注意到,如果我尝试连续构建两次,第二次构建会失败,因为 DLL 已经签名,因此 signcode 阻塞.显然我可以通过在构建中签署 DLL 的副本来解决这个问题,但这个问题引起了我的兴趣:

I've noticed that if I try to build twice in succession, the second build fails because the DLL is already signed so signcode chokes. Obviously I can fix this by signing a copy of the DLL in the build, but the problem intrigued me:

是否可以对 DLL 进行取消签名",如果不能,为什么不...?

Is it possible to "unsign" a DLL, and if not, why not...?

推荐答案

signtool remove /s C:path	o.exe.or.dll

signtool在 Windows SDK 中可用,并且必须至少来自 Windows 8 SDK 工具包(版本 6.2.9200.20789)才能支持 remove 命令.

signtool is available in Windows SDK, and must be at least from Windows 8 SDK kit (version 6.2.9200.20789) to have the remove command supported.

这篇关于我可以从 DLL 中删除数字签名吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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