Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to resign a signed .net dll with a different key pair?

My colleague deploy a dll and he signed with the key generated on his machine.Right now I need to use the DLL in my project, so I need to resign the DLL, I generate a key pair on my computer, then try to resign it with sn.exe -R or sn.exe -Vr , but always failed.

Is it possible to resign a signed .net dll with a different key pair?

Thanks in advance !

like image 289
MemoryLeak Avatar asked Jul 10 '10 03:07

MemoryLeak


1 Answers

See: How to sign a .NET Assembly DLL file with a Strong Name?

Ryan Farley's linked article suggests:

disassemble the DLL to IL and then reassemble the IL back into a DLL and include the new key file.

like image 101
Mitch Wheat Avatar answered Sep 30 '22 07:09

Mitch Wheat