Skip to content

Instantly share code, notes, and snippets.

@crunchie84
Created April 18, 2013 08:48
Show Gist options
  • Save crunchie84/5411248 to your computer and use it in GitHub Desktop.
Save crunchie84/5411248 to your computer and use it in GitHub Desktop.
example batch file to generate a certificate for usage in the Azure management portal
@echo off
SET subjectName="My-Azure-Certificate"
SET outputCertFile="AzureConf.cer"
SET storeName="My"
SET storeLocation="LocalMachine"
CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\makecert" -r -pe -a sha1 -n CN=%subjectName% -ss %storeName% -sr %storeLocation% -len 2048 -sp "Microsoft Enhanced RSA and AES Cryptographic Provider" -sy 24 %outputCertFile%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment