In this article we are going to see how to add a new certificate to an Azure application starting with the deployment of the azure application to the Azure Management Portal
Adding certificate to an Azure application is something which requires basic idea of what a certificate it and what types of certificates are available(Check my previous article on Overview of Certificates in Azure). Once we are confident on what certificates are and which type of certificate to use we are well set to start with the process of adding the certificate to the cloud application. In our sample we will see on how to add a Service Certificates to an Azure application. Lets jump-start to see the steps on how to create and configure a certificates in Azure Management Portal.
First we will create a new Cloud application (Azure App) with a web role and an asp.net project as shown in the screen below(Check my earlier article on How to create this application Step by step)
Now right click on the Azure Application and Select Publish option as shown in the screen below
Here this is an important step to select the option for deploying the application to the cloud, we have 2 options here to do a direct deploy or to prepare a service configuration files to do a manual deploy.
Since in our sample we are going to Add a new certificate we will select "Deploy your Windows Azure Project to Windows Azure" as shown in the screen below and select the drop down box Credentials and select ADD as shown below.
Here we are going to do some manual configurations to create a certificate for authentication purpose. So Select the first drop down box as highlighted in the screen below.
We can see a list of Certificates available, may be in you system there will not be any certificates since its not created one. Now select Create option to create a new application certificate as shown in the screen below.
Clicking on Create will pop up a window asking for some friendly name for the certificate to make it as identification if we need to create with more than 1 certificate as shown in the screen below
Once we give the certificate friendly name, now click on OK button will go back to the previous screen where we need to see the option no 2 as highlighted in the screen below. Copy the full path option will allow us to copy the location of the certificate to use it across the places required. So Click on that link button as shown in the screen below
Now we can see a pop up indicating that the Certificate path details are copied to the windows clipboard to use it across as shown in the screen below
Now click on the option 2 link Windows Azure Portal or we can directly go to www.microsoft.com/windowsazure/
to open the Azure management portal as shown in the screen below
Provide the credentials for the Azure portal and we can see the screen as shown below
Now click on Hosted services, Storage Accounts and CDN as shown in the screen below and we can see Hosted Services Menu at the left side. Click on that will open the list of applications hosted as shown in the screen below.
Now select the application where we need to add the certificate and Click on ADD Certificate option as shown in the screen below
We can see a pop-up window asking for some inputs of the certificate as shown below. Now click on browse button as shown in the screen below
Now Paste the path which we copied initially on where the certificate is located in the browse option as shown in the screen below and click on open
Now the certificate file is added and there will be an option to enter a password, we can create our own password for authentication as shown in the screen below and click on Create button
Now we can see a new Certificate is added to the hosted service as highlighted in the screen below, which indicates that a new certificate has been created and added to the application.
So now we are well set with adding a certificate (Self created) to an existing application deployed on the Azure Management portal
So in this article we have seen how to create a new certificate and add the certificate to an Azure application using Azure Management Portal