Our web app running on Azure has the Azure Let's Encrypt 0.9.6 extension installed.
Launching the extension (https://********-website-stage.scm.azurewebsites.net/letsencrypt/
) is no problem and we get to fill the form with the values needed to create a certificate, as in the attached image:
Let's Encrypt certificate registration form
After about 2 minutes the request times out. The error we get is:
502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.
The error log says this:
The web app name the error reports about (******-website-stage
) exists (it is used for ******-website-stage.azurewebsites.net
), but it looks kinda funny with the https-prefix, the tilde character with the number one after (~1), and finally, calling port 80 on https?
We did the exact same configuration and letsencrypt installation in our production environment, and it succeeded without any problems.
The problem seems to occur when our web app tries to contact Let's Encrypt again to supply info about our Azure web app configuration, such as, which host names to register the certificate for.
Any ideas where to look next?