Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract private key ,created using Strong Name tool (sn.exe)?

Sn.exe provides options for key management, signature generation, and signature verification.

For creating public and private key pair following command is used-

sn -k keyPair.snk

public key could be extracted using-

sn -p keyPair.snk publicKey.snk

I want to see the corresponding private key of the pair generated,

How can i do that ?

like image 434
maatu Avatar asked Nov 13 '22 19:11

maatu


1 Answers

The SN.exe utility doesn't offer any way for you to display the private key. The name itself says it is a private key. Every public key is unique to its corresponding pair of private key. Had it been possible to know the private key any one can infringe the content of your .Net assembly and the entire motive of signing a .Net assembly which saves the content of your assembly from malicious tempering would get lost.

like image 74
RBT Avatar answered Nov 15 '22 12:11

RBT