Can I remove a digital signature from a DLL?

后端 未结 6 1894
误落风尘
误落风尘 2020-12-29 05:01

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 b

6条回答
  •  有刺的猬
    2020-12-29 05:18

    Sure it's possible, but not trivial.

    Although it would be easier to save a copy of the presigned DLL.

    This digital signature is little more than an extra section appended to the end of a PE file. You could write a program that deleted the signature, if you want.

    It's not quite as simple as truncating the file; you have to remove references to the signature in the file header. It could get complicated if the DLL has multiple signatures and you just want to remove one.

    The format of a PE file is publicly documented here

提交回复
热议问题