A) STRONG NAME
1) you need SDK Tool SN:C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\sn.exe
2) create key file:
sn -k StrongNameKeyFile.snk
3) sign the assembly in Visual Studio
in VisualStudio open Project Properties,
Signing,
Sign the assembly and choose the StrongNameKeyFile.snk from (2)
4) check if assembly is strong named:
sn -v assembly name
=> output ....exe stellt keine Assembly mit einem starken Namen dar.
oder
=> output Die Assembly "....exe" ist gültig
readmore:
https://www.linkedin.com/pulse/code-signing-visual-studio-jason-brower
B) SIGNTOOL
C:\Program Files (x86)\Windows Kits\10\bin\x64
/a automatically selects the code signing certificate with the longest valid date:
/a automatically selects the code signing certificate with the longest valid date:
signtool sign /a yourApp.exe
=> output Done Adding Additional Store
Succeddfully signed: yourapp.exe
=> there is a new Tab in Windows File Properties named "Digital Certificates" which shows the cert owner
=> there is a new Tab in Windows File Properties named "Digital Certificates" which shows the cert owner
No comments:
Post a Comment