Deleting a digital signing certificate (.PFX file)

XBigTK13X picture XBigTK13X · Apr 26, 2011 · Viewed 14.3k times · Source

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.

Answer

Magnus Johansson picture Magnus Johansson · Apr 26, 2011

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.