Introduction to .NET Framework Tools
page 3 of 15
by Suresh Kumar Goudampally
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 63494/ 281

Sn.exe - An Insight

This is the tool which helps assemblies to sign with strong names. Sn.ex provides various options for key management, signature generation and signature verification.

Here are the some of the commands of Sn.exe tool through which we can manage the strong key and signing an assembly.

    Command Name

       Description

            -k

          

Creates a random key pair and stores in a file.

    Eg :  sn –k keypair.snk 

    

           -v

This command is used to check whether the assembly is valid or not.

 

  Eg:  Sn –v  TestAssem.dll

           -p

This command is used to extract the key pair value from one file to another file.

 

Eg: sn –p  kepair.snk ss.snk

            -?

Displays all the options available for the tool.

 

 Eg :  sn –?

            -h

Displays all the options available for the tool.

 

 Eg :  sn –h

           -c

This is used to set the default Cryptographic service provider for signing the assembly.

 

Eg:   sn -c

           -e

         

Extracts the public key from the assembly and stores it in outfile.

           -vl

Lists current settings for strong name verification on this computer.

           -R assembly infile

Re-signs a previously signed or delay signed assembly with the key pair in infile.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2014 ASPAlliance.com  |  Page Processed at 11/23/2014 6:52:55 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search