Skip to content

Instantly share code, notes, and snippets.

@woloski
Created July 7, 2012 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woloski/3066840 to your computer and use it in GitHub Desktop.
Save woloski/3066840 to your computer and use it in GitHub Desktop.
Create a self signed certificate on Windows
makecert -r -n "CN=%1" -b 01/01/2000 -e 01/01/2099 -eku 1.3.6.1.5.5.7.3.3 -sv %1.pvk %1.cer -sky Exchange -pe
cert2spc %1.cer %1.spc
pvk2pfx.exe -pvk %1.pvk -spc %1.spc -f -pfx %1.pfx -po %2
del %1.spc
del %1.pvk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment