I'll definitely use this in my next web project, thanks Doug!.
Part of my day job right now is centered around developing new Azure Cloud Services for the business and I wanted to share some learning that I just experienced with certificates.
The could service I'm working on has one main web worker role that I wanted to associate a certificate with for SSL. So I loaded up the properties page of my Web Role and started adding in the certificate I wanted to use.
I gave my certificate a name and started working through the Store Location and Store Name drop downs to find the right cert, but I couldn't locate it. It turns out I wasn't installing the certificate into the correct store.
To ensure that certificates are available under the "My" store name in the "LocalMachine" store location:
- Open Management Console by going to Start -> Run -> "mmc"
- Load the Certificate Snap-in by going to File -> Add/Remove Snap-in
- Select Certificates and select Computer Account, Local Computer
- Right Click on the Personal node under Certificates and select All Tasks -> Import.
After the certificate is imported in to your Local Computer / Personal store, it will then be available under LocalMachine / My location in Visual Studio.
Granted this is all of the steps required to use SSL in a cloud service. I recommend this article from the Windows Azure site as a good starting point.