Difference between revisions of "Quick Guide to .exe code signing"

From HoerupWiki
Jump to: navigation, search
(Created page with "* RDP to wi2cccrt02 and enable access for your user to use CodeSigning template * Open PowerShell, and issue a new cert for code signing ** <code>Set-Location Cert:\CurrentUse...")
 
 
Line 6: Line 6:
 
** Do _NOT_ try to make Visual Studio make the code signing - it sucks big time (do not touch clickonce etc)
 
** Do _NOT_ try to make Visual Studio make the code signing - it sucks big time (do not touch clickonce etc)
 
** open a cmd
 
** open a cmd
** cd <your project>\bin\release
+
** <code> cd <your project>\bin\release </code>
 
** <code>"c:\Program Files (x86)\Windows Kits\8.1\bin\x64\signtool.exe" sign &lt;your-exe-file> </code>
 
** <code>"c:\Program Files (x86)\Windows Kits\8.1\bin\x64\signtool.exe" sign &lt;your-exe-file> </code>

Latest revision as of 10:28, 16 May 2017

  • RDP to wi2cccrt02 and enable access for your user to use CodeSigning template
  • Open PowerShell, and issue a new cert for code signing
    • Set-Location Cert:\CurrentUser\My
    • Get-Certificate -Template CodeSigning
  • To sign the .exe:
    • Do _NOT_ try to make Visual Studio make the code signing - it sucks big time (do not touch clickonce etc)
    • open a cmd
    • cd <your project>\bin\release
    • "c:\Program Files (x86)\Windows Kits\8.1\bin\x64\signtool.exe" sign <your-exe-file>