Skip to content

Instantly share code, notes, and snippets.

@matejskubic
Created February 29, 2012 08:51
Show Gist options
  • Save matejskubic/1939264 to your computer and use it in GitHub Desktop.
Save matejskubic/1939264 to your computer and use it in GitHub Desktop.
makecert azure
call :MakeAndExport "Azure Management %1"
call :MakeAndExport "Azure RemoteDesktop %1"
goto exit:
:MakeAndExport
makecert -sky exchange -r -n "CN=%~1" -a sha1 -len 2048 -pe -ss My "%~1.cer"
certutil.exe -user -p "spCertPass-12" -exportPFX -privatekey "%~1" "%~1.pfx"
exit /b 0
:exit
exit /b 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment