2019-02-04 20:03:39 +00:00
|
|
|
# sn
|
|
|
|
|
|
|
|
> Mono StrongName utility for signing and verifying IL assemblies.
|
2022-02-01 09:06:33 +00:00
|
|
|
> More information: <https://manned.org/sn>.
|
2019-02-04 20:03:39 +00:00
|
|
|
|
|
|
|
- Generate a new StrongNaming key:
|
|
|
|
|
|
|
|
`sn -k {{path/to/key.snk}}`
|
|
|
|
|
|
|
|
- Re-sign an assembly with the specified private key:
|
|
|
|
|
2021-04-10 20:30:31 +01:00
|
|
|
`sn -R {{path/to/assembly.dll}} {{path/to/key_pair.snk}}`
|
2019-02-04 20:03:39 +00:00
|
|
|
|
|
|
|
- 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}}`
|