Skip to content

Instantly share code, notes, and snippets.

@aczire
Last active July 24, 2016 23:34
Show Gist options
  • Save aczire/31bacf12d51fa160d077468e396f615d to your computer and use it in GitHub Desktop.
Save aczire/31bacf12d51fa160d077468e396f615d to your computer and use it in GitHub Desktop.
In Developer Command Prompt for VS2015
[Create the Trusted Root Authority]
makecert.exe -n "CN=Aczire Test CA Root Authority" -r -pe -a sha512 -len 4096 -cy authority -sv aczire-root-ca.pvk -ss Root -sr LocalMachine aczire-root-ca.cer
pvk2pfx.exe -pvk aczire-root-ca.pvk -spc aczire-root-ca.cer -pfx aczire-root-ca.pfx -po 123456
[Create the code signing certificate]
makecert.exe -n "CN=Aczire Solutions" -iv aczire-root-ca.pvk -ic aczire-root-ca.cer -pe -a sha512 -len 4096 -b 01/01/2014 -e 01/01/2026 -sky signature -eku 1.3.6.1.5.5.7.3.3 -sv aczire-code-sign.pvk aczire-code-sign.cer
pvk2pfx.exe -pvk aczire-code-sign.pvk -spc aczire-code-sign.cer -pfx aczire-code-sign.pfx -po 123456
[CodeSign]
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat" && SignTool sign /v /s Root /t http://timestamp.verisign.com/scripts/timstamp.dll /n "Aczire Test CA Root Authority" .\x64\Win8.1Release\wtapdrv.sys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment