How to sign an assembly with a strong name file and, optionally, code sign with certificate?

Topics: Metadata Model, PE Writer
Jun 11, 2009 at 9:53 PM
Edited Jun 17, 2009 at 3:28 AM

Hi,

Wondering how to sign resulting assembly with a strong name file and, optionally, code sign with certificate?

Thanks.

 

 

 

Coordinator
Jun 11, 2009 at 9:54 PM

On vacation until Monday 6/15. Expect slow or no response to e-mail.

Coordinator
Jun 17, 2009 at 5:18 AM

If the assembly has a strong name with a public key, the binary written by the the pe writer will be "delay signed" (i.e. space will be left for the signature hash). You can then sign the assembly with the sn utility.

At some point, I hope, I might find the time to add a helper method to UnitHelpers in MetadataHelpers.dl to invoke the underlying code in the sn utility to do the signing. (Or someone else might beat me to it ;-)