From ebdcd305663659e554054c6207a13fac6f835dc8 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 4 Feb 2019 20:03:39 +0000 Subject: [PATCH] sn: add page (#2744) --- pages/common/sn.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/sn.md diff --git a/pages/common/sn.md b/pages/common/sn.md new file mode 100644 index 000000000..f65191402 --- /dev/null +++ b/pages/common/sn.md @@ -0,0 +1,19 @@ +# sn + +> Mono StrongName utility for signing and verifying IL assemblies. + +- Generate a new StrongNaming key: + +`sn -k {{path/to/key.snk}}` + +- Re-sign an assembly with the specified private key: + +`sn -R {{path/to/assembly.dll}} {{path/to/keypair.snk}}` + +- Show the public key of the private key that was used to sign an assembly: + +`sn -T {{path/to/assembly.exe}}` + +- Extract the public key to a file: + +`sn -e {{path/to/assembly.dll}} {{path/to/output.pub}}`