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): 70994/ 211

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-2021  |  Page Processed at 2021-12-04 5:58:17 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search