Skip to content

Instantly share code, notes, and snippets.

@dadoonet
Created February 4, 2014 13:24
Show Gist options
  • Save dadoonet/8803486 to your computer and use it in GitHub Desktop.
Save dadoonet/8803486 to your computer and use it in GitHub Desktop.
Azure on windows

Create a certificate:

"C:\Program Files (x86)\Windows Kits\8.1\bin\x86\makecert.exe" -sky exchange -r -n "CN=ESCert" -pe -a sha1 -len 2048 -ss My "ESCert.cer"

Upload the .cer to the settings management section in the Azure portal.

Using certmgr.msc, export the certificate in .pfx format (it will be in the Personal section). Give it a password with reasonable complexity.

Then in the ES config:

   cloud:
       azure:
           keystore: c:/elasticsearch-0.90.10/ESCert.pfx
           password: Pass123!
           subscription_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
           service_name: elastictom
   discovery:
           type: azure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment