Created
April 18, 2013 08:48
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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