Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I remove a digital signature from a DLL?

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

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:

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

like image 687
Roddy Avatar asked Dec 04 '08 16:12

Roddy


People also ask

Can digital signatures be removed?

Remove digital signatures from Word or Excel Open the document or worksheet that contains the visible signature you want to remove. Right-click the signature line. Click Remove Signature. Click Yes.

Do DLL need to be signed?

It is a recommended secure practice to sign all binaries that you ship and validate their signatures at runtime. If your dlls are to be used by other products then you must sign them as those products will want to verify their authenticity and integrity.

How do I remove someone's digital signature?

To remove your signature, right-click the signature and then choose Clear Signature. If you got a signed PDF, you can request the signer to remove the signature and share the PDF or send an unsigned copy of the PDF.

How do you check if DLL is digitally signed?

To see if they are digitally signed is easier. Open the properties sheet for the . dll from Windows Explorer. If a tab "Digital Signatures" is shown, it's a signed assembly.


1 Answers

signtool remove /s C:\path\to.exe.or.dll 

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.

like image 120
vine'th Avatar answered Oct 11 '22 02:10

vine'th