[Fixed]-How to fetch SSL Certificate for django project in Azure?

1👍

That’s not how TLS works in Azure App Service. TLS is terminated at the Frontend layer. Your application only has to deal with plain HTTP.

TLS-and-ARR

If you need to check if the request was made over HTTPS:

Application Request Routing (ARR) is attaching a special request header to every request that arrives over HTTPS. The value contained in X-ARR-SSL provides information about the TLS server certificate that was used to secure the TCP connection between the client and the ARR.

e.g.:

X-ARR-SSL: 2048|256|C=US, S=Washington, L=Redmond, O=Microsoft Corporation,
           OU=Microsoft IT, CN=Microsoft IT SSL SHA2|CN=*.azurewebsites.net

My other answer here has more on that topic:
Is current request being made over SSL with Azure deployment

May I know how to get a proper SSL certificate for my app in azure ?

https://azure.microsoft.com/en-us/documentation/articles/web-sites-purchase-ssl-web-site/

You get free TLS on https://{site}.azurewebsites.net, that is if you don’t really need a custom domain or just looking to build a quick proof of concept.

Leave a comment