Signing code with a digital certificate To sign code with a digital certificate (Authenticode) you need the codesigning tool. This tool is provided by Microsoft and is part of the systems development kit (SDK). It is also shipped with Visual Studio .Net.
Running signcode shows a wizard with which to accomplish the task. You can also run it as a command line. A typical command line would be:
signcode -cn "My Certificate" mydll.dll To also include a timestamp you can use this command:
signcode -cn "My Certificate" -t "http://timestamp.verisign.com/scripts/timstamp.dll" mydll.dll More information: File Signing Tool (Signcode.exe)
http://msdn.microsoft.com/en-us/library/9sh96ycy%28VS.80%29.aspx