How to Create a x509 Certificate for the Windows Azure Management API

Cut to the chase. Here is how you do it.

  1. Load the IIS 7 management console. I’m assuming here you have IIS7 installed since its required for the Windows Azure SDK.
  2. Click on your Server.
  3. Double Click Server Certificates in the IIS Section in the main panel.
  4. Click Create Self-Signed Certificate… in the Actions panel.
  5. Give it a Friendly Name.
  6. Close IIS Manager.
  7. Open Certificate Manager (Start->Run->certmgr.msc)
  8. Open Trusted Root Certification Authorities, then Certificates.
  9. Look for your certificate (Tip: Look in the Friendly Name column).
  10. Right Click your certificate, then choose All Tasks, then Export…
  11. In the Wizard, choose No, do not export the private key, then choose the DER file format.
  12. Give your cert a name. (remember to call it something.cer).
  13. Navigate to the Windows Azure Portalhttp://windows.azure.com
  14. Click the Account Tab, then click Manage My API Certificates.
  15. Browse to the certificate file you created earlier and upload it.
  16. Done!

Want to use the API, check out these  Windows Azure Service Management CmdLets on code gallery – http://code.msdn.microsoft.com/azurecmdlets and script your upgrades.

THIS POSTING IS PROVIDED “AS IS” WITH NO WARRANTIES, AND CONFERS NO RIGHTS