Signing an assembly with a .pfx file using SignTool.exe.
durch Alexander Fauland
Just follow these steps:
- Install your .pfx file in the machine certificate store.
- Open mmc.exe, add the certificate snap-in and look for your installed certificate in the local machine storage.
- Copy the certificate name.
- Sign your assembly with the following command line: „C:\Program Files (x86)\Windows Kits\10\bin\x64\signtool.exe“ sign /sm /n „{YOUR CERTIFICATE NAME}“ /fd sha256 /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp „$(TargetPath)“
- I’m using this command line in my post build events. You can just replace „$(TargetPath)“ with the full path to your .dll to run the command in a separated command window.
Recommended Posts
Serialize an Entity Framework entity to JSON (Newtonsoft.Json)
02 Feb 2017 - Backend & Datenbanken, C# .NET, Entity Framework
Xamarin.Forms Gesture-Pattern-Login
26 Sep 2016 - C# .NET, Visual Studio, Xamarin