
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
982
|
Chapter 17: Security
In order to use delay-signing, you need to prepare the development environments for
assemblies that are only partially signed. To do this, instruct the CLR to skip verifica-
tion of assemblies using a given public key. Once again, use SN.exe to accomplish
this:
SN -Vr *,d15f821006850b34
One other approach is to have separate keys for development and final release ver-
sions, which allows for fully signed development versions without compromising the
signed assemblies that you ship to customers.
Note that this solution will protect your assembly only as long as the machine it is
running on is secure. If a malicious user can access the code that uses the assembly
and the assembly itself, he can simply replace them with his own copies.
See Also
See the “AssemblyKeyFile Attribute” and “AssemblyDelaySign Attribute” topics in
the MSDN documentation.
Figure 17-1. The Signing tab of the project properties