There are multiple cases where you would need to have Certificates. The following are a few examples.
- To create or enable SSL on your custom domain for your Cloud applications.
- To enable Remote Desktop for your Virtual Machines.
You can either purchase the Certificates from third-party vendors (for production purposes) or create a Self-Signed certificate. For this example, we will look at how to create a Self-Signed certificate. In future articles, we will learn how to get a Certificate from third-party vendors, as well.
Open Visual Studio and navigate to your Cloud Service. Right click on the Cloud Service project and select “Configure Remote Desktop”, as shown below.

Visual studio will open the following popup where the “Enable Connections for all roles” checkbox is unchecked and so all the options are disabled by default.

Note: Please note that we are using Visual Studio just to create the .PFX (Personal Information Exchange) file. To understand the complete process of enabling Remote Desktop for a Cloud Service, please refer to my other article Azure Cloud Service – Enable Remote Desktop using Visual Studio.

As shown in the above screen, enable the “Enable connections for all roles” checkbox and open the dropdown with the text “<Automatic>” which displays all the certificates that you have already created. Select “<Create…>” to create a new one, as shown in the below popup.

Provide a friendly name for the certificate and click on “OK” button. It would take few seconds to create the Certificate.

Visual Studio has created and installed a Certificate in the local Certificate repository. Let’s navigate to the Certificate repository typing “certmgr.msc” in the run command (Windows + R), as shown below.

Clicking on “OK” button will open the Certificate Manager.

Select “Personal -> Certificates” to open the Self-signed certificates where you can see the one that you have just created using Visual Studio.

Azure Management portal expects a .PFX file. Let’s generate a .PFX file using the selected Certificate in the above screenshot.

Right click on the Certificate name, select “All Tasks”, and then choose “Export”. It opens a “Certificate Export Wizard”, as shown below.

Clicking “Next” will take you to the next step.

In this step, choose “Yes, export the private key” option and click “Next”.

Let all the default options in the above screen be as-is and click on “Next”.









Join the conversation! Your thoughts help the community grow.