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

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




Creates a random key pair and stores in a file.

    Eg :  sn –k keypair.snk 



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


  Eg:  Sn –v  TestAssem.dll


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 –?


Displays all the options available for the tool.


 Eg :  sn –h


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


Eg:   sn -c



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


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-2015  |  Page Processed at 12/1/2015 12:39:29 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search