How to add strongname signature(SNK) to protected .Net DLL?
With Strong Name Tool.
.Net dll after protected with VMProtect, can not resign strong name.
Why?
After VMProtect protection, the DLL file that has been strongname signed will be invalid.
Adding a Strong Name to an existing DLL, need
ildasm SomeAssembly.dll /out:SomeAssembly.il
[and]
ilasm SomeAssembly.il /dll /key= keyPair.snk
But protected DLL cannot ildasm
Did you try to resign your binary with sn.exe?
It’s been tried, but can’t resign with “sn.exe -R ”
What does “sn.exe” show?
show “dll does not represent a strongly named assembly”
=====================================================
Comment:
1、When the dll file is protected by VMprotect, the strongname signature becomes invalid.
2、When using "SN.exe -R " to resign dll file, the original strongname signature is required to be the same and valid.
Hi,
I have the same issue, how did you solve it?
Thanks!
Hi,
After I resigned the dll using "SN.exe -R ", I used gacutil /IF “protected dll file” and got the following error:
“Failure adding assembly to the cache: Invalid file or assembly name. The name of the file must be the name of the assembly plus .dll or .exe”"
Thanks!
Hi,
I have the same issue, do you have any idea how to solve it?
Thanks!