HTTPS on an Azure Virtual Machine

I am moving our website to Azure, running on a Windows Server 2012 virtual machine. I bought the SSL substitution certificate with GoDaddy and it was installed and configured on the virtual machine. I also configured IIS to use this certificate for all requests on port 443. I also created an HTTPS endpoint in the Azure Management Console on port 443.

I can normally connect to the website on port 80, but 443 cannot be reached and control the connection through a violinist, I get a 502 response.

I looked through all the Azure documentation and cannot find much useful information for setting up SSL on a virtual machine in the cloud.

+6
source share
2 answers

When I configured the endpoint for SSL, I checked the "Enable direct server return" checkbox. This option has disabled SSL. I have not come across any documentation explaining why it behaves this way. Fixed the problem with deleting the endpoint and creating it without directly returning the server.

+4
source

Make sure you open the endpoint for 443 to redirect it to your virtual machines. See http://www.windowsazure.com/en-us/develop/net/common-tasks/enable-ssl/

0
source

Source: https://habr.com/ru/post/958419/


All Articles