删除数字签名证书(.PFX 文件)
我之前安装了错误的 .PFX 文件来对程序集进行签名。我现在需要删除它以纠正构建错误。有没有办法删除无效的签名证书?我尝试通过证书管理管理单元删除它,但 Visual Studio 仍然使用它来构建。
I previously installed an incorrect .PFX file to sign assemblies. I now need to remove this in order to correct a build error. Is there anyway to remove the invalid signing certificate? I've tried removing it through the snap-in for certificate management, but Visual Studio still uses it to build.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你可能有点混淆了。
阅读您的问题,您似乎想删除使用强密钥文件对程序集进行签名?
该密钥文件不存储在 Windows 的证书存储中,而是作为文件存储(通常在您的项目文件夹中)。
进入项目的设置,在“签名”选项卡下,取消选中“对程序集进行签名”。
如果您确实指的是代码签名 (
Authenticode
),那么您可能有一个自定义生成操作,可以使用 SignTool.exe 使用代码签名证书对程序集进行签名。It sounds that you may have confused things a little bit.
Reading your question, it seems that you want to remove the signing the assembly with a strong key file?
That key file is not stored in the Certificate Store in Windows, but rather as a file (usually within your project folder).
Go in to the settings of the project, under the Signing tab, uncheck the "Sign the assembly".
If your are indeed referring to code signing (
Authenticode
), then you probably have a custom build action that signs the assembly with the code signing certificate using SignTool.exe.