How to Configure SSL Certificates for Azure Application
Configuring the SSL for an application in Azure is just easy. As you know, the SSL, or Secure Socket Layer, is a kind of encryption that is most commonly used by website owners to keep their site secure and to safeguard all the information that is being sent to and from their site. Refer below for the steps on how to configure the SSL Certificates for Azure application.
Obtain an SSL certificate
The first step is to acquire an SSL Certificate which was signed for by the Certificate Authority that gives out certificates for this main purpose. If you do not have any certificate yet, then you should get one from a provider that offers SSL Certificates, such as GoDaddy. The certificate should have a private key and it should be set up for key exchange. Also, it should be exportable to the Personal Information Exchange file. The certificate should also make use of a minimum of 2048 bit encryption.
Modify the Configuration Files and Service Definition
Next, your application should be configured in order to use the certificate, and the https endpoint should also be added. As a result, the service definition as well as the service configuration files should therefore be updated.
First, on the development environment, open the CSDEF or service definition file and then add the Certificates section right within the WebRole section. Second, right on your service definition file, add the InputEndpoint element right within the Endpoints section in order to enable https. Third, refer to the service definition file and then add a binding element within the sights section. This will add an https binding map to the endpoint of your site. Fourth, refer to the CSCFG and add the certificates section right within the role section in order to replace the sample thumbprint value.
Upload the Deployment Package and Certificate
Remember that your deployment package was updated in order to use the certificate and therefore, an https endpoint has been added. You can now upload the package and the certificate to Azure using the Management Portal. Refer to the steps.
- Log in to the Azure Management Portal.
- Choose “new”. Click the Cloud Service and then refer to Custom Create.
- On the “create a cloud service” dialog, key in the values for the URL, including the region or affinity group, as well as the subscription. Ensure that the “deploy a cloud service package” is checked, and go on to the next.
- Right on the “publish your cloud service”, key in the required information that you need to use for the cloud service and then choose Production for the environment. Make sure that the “Add the certificates now” is being checked.
Connect to the Role Instance by Using HTTPS
At this point, your deployment should now be good to go on Azure and therefore, you can now get connected to it with the use of https. Right on the Management Portal, choose your deployment and then click on the link right below the site URL.