Skip to content

Instantly share code, notes, and snippets.

@andreasbotsikas
Last active January 21, 2020 17:37
Show Gist options
  • Save andreasbotsikas/2d7d340b8c02079bc161 to your computer and use it in GitHub Desktop.
Save andreasbotsikas/2d7d340b8c02079bc161 to your computer and use it in GitHub Desktop.
Generate windows phone and win8 app certificate
REM The following is a relic from the visual studio command line era.
call "%VS120COMNTOOLS%..\..\vc\vcvarsall.bat"
REM https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/bfsktky3(v=vs.100)
makecert -n "CN=MyName" -r -h 0 -eku "1.3.6.1.5.5.7.3.3,1.3.6.1.4.1.311.10.3.13" -e 01/01/2200 -sv private.pvk cert.cer
REM In powershell you can just add the windows sdk path for pvk2pfx
REM $Env:Path += "C:\Program Files (x86)\Windows Kits\10\bin\x64\"
pvk2pfx -pvk private.pvk -spc cert.cer -pfx certificate.pfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment