. Net tools (IV)-Sn. exe

Source: Internet
Author: User

Sn is a tool for generating keys in. net.ProgramA public key pair is required for strong signature. This tool can be used to generate a key file and view the public key in the file, you can also use this tool to perform a strong signature on the Assembly. This tool is also required when the signature is delayed. This tool is generally in the path c: \ Program Files \ microsoft sdks \ windows \ v7.0a \ bin. Start the tool on the following page:

After the startup, the main interface is used for help. You can view the meaning of each name. The following describes several common commands.

1. Generate a key file sn.exe-k <FILENAME>

The generated key file mykeys. Keys contains both the public key and the private key.

2. Export a file named sn.exe-P mykeys. Keys mypublickeys. Keys that only contains the public key from the key file.

3. view the Public Key sn.exe-TP in the public key file <FILENAME>

4. disable the system from checking the integrity of the Assembly sn.exe-VR <assemblyname>. Start the runtime sn.exe-vu <assemblyname> in the system checklist. (Used when the signature is delayed)

5. Use the private key file to delay the signing of the Assembly. sn.exe-r <assemblyname> <privatekeyfile>

Note: The sn.exe command is case sensitive and has different meanings. Second, sn.exe does not provide a command to view the private key. In addition, some common functions of sn.exe can be implemented through the interface in the vs compiler.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.