You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems it is not possible to use dnlib to either only add the public key token to the assembly (delay signing) or to sign the assembly with a test key (signing with a key that is not the same as the public key used during delay signing). This is unfortunate as in our corporation we want to obfuscate assemblies and then only sign them on the build server while developers use test key signing as recommended by Microsoft best practices.
The text was updated successfully, but these errors were encountered:
To add to this, it is also not possible to round trip such assemblies. When loading a delay signed assembly and then directly saving it again, the assemblies will have the "StrongName" flag set in the header, while normally delay signed assemblies do not have the flag set. The same applies to test-signed assemblies.
Great! Thank you very much. Is there also a property to check if a loaded
assembly is delay signed (ModuleDef) and in this case would the writer be
initialized correctly to roundtrip?
Thanks again!
Edit: Removed remark about public key as this is already handled. Was confused about the .snk ending.
It seems it is not possible to use dnlib to either only add the public key token to the assembly (delay signing) or to sign the assembly with a test key (signing with a key that is not the same as the public key used during delay signing). This is unfortunate as in our corporation we want to obfuscate assemblies and then only sign them on the build server while developers use test key signing as recommended by Microsoft best practices.
The text was updated successfully, but these errors were encountered: