Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SN.EXE - when to use and how do i use it
Message
General information
Forum:
ASP.NET
Category:
Security
Miscellaneous
Thread ID:
00931141
Message ID:
00931406
Views:
16
>Thanks Dave,
>Does this mean that the exe will be signed?
>

Yes. An assembly is your unit of deployment, either an exe for a winform or console project or a dll for a Class library project.

>>AssemblyKeyFile("..\\..\\mykey.snk")
>
>Why the "\\..\\mykey.snk", why not just use "mykey.snk"

You could choose to not specify the parent directory but then you would have to put the .snk file in the bin\debug folder and that's not very convenient. If the vs.net build process can't find the .snk file it will complain.

>
>Do i need the public key that i created?

The idea is that you generate one public and one private key. You keep the private key somewhere safe like on one of those removable USB drives and store it in a safe place. When you sign a piece of code with your key you are saying "I am the author of this code and I am responsible for its behavior." If it causes a problem on the client's computer then they know who it was that caused the problem.

The public key is what gets distributed so you can be identified as the author of the code.

>
>--thanks,
Previous
Reply
Map
View

Click here to load this message in the networking platform