What is the use of SN.EXE?
- SN stands for Strong Name.
- Strong Name Tool (Sn.exe) is used to sign assemblies with strong names.
It provides an option for security issues like:a. Key management
b. Signature generation
c. Signature verification
- It is automatically installed with Visual studio.
- It can be used for several purposes when working with shared components.
- It can be used to generate a new public-private key pair and to write that pair to a file.
Syntax:sn [ -quiet ] [ option [parameter (s) ]]
Parameters:Option | Description |
-a | It generates AssemblySignatureKeyAttribute data to migrate the identity key to the signature key from a file. |
-k | It generates a new RSACryptoServiceProvider key of the specified size and writes it to the specified file. |
-m | It specifies whether the key containers are computer-specific or user-specific. |
-VI | It lists the current settings for strong-name verification on this computer. |
-TS | Test-signs the signed or partially signed assembly with the key pair in infile. |
-q | It specifies quiet mode. It suppresses the display of success messages. |