question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CheckHttpChallenge failed

See original GitHub issue

First, thank you for this awesome work. I added a certificate to one of my web app and it worked good, now I’m trying to add another certificate to another web app and I’m getting this error:


{"instanceId":"e1ccfbc4e82847a08bbf4d25fc504e0c","runtimeStatus":"Failed","input":{"$type":"AzureAppService.LetsEncrypt.AddCertificateRequest, AzureAppService.LetsEncrypt","ResourceGroupName":"x","SiteName":"x-landing","SlotName":null,"Domains":["x.com"],"UseIpBasedSsl":true},"customStatus":null,"output":"Orchestrator function 'AddCertificate' failed: The activity function 'CheckHttpChallenge' failed: \"http://x.com/.well-known/acme-challenge/pacs5JZq1pUplU6YfmCQknZFF7pmhn22hCVwl0dTXRs is NotFound status code.\". See the function execution logs for additional details.","createdTime":"2019-05-11T03:16:03Z","lastUpdatedTime":"2019-05-11T03:17:28Z"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
shibayancommented, May 11, 2019

If you update Web.config under .well-known to the following contents, you should be able to avoid the above error.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <clear />
      <add name="StaticFile" path="*" verb="*" modules="StaticFileModule" resourceType="Either" requireAccess="Read" />
    </handlers>
    <staticContent>
      <remove fileExtension="." />
      <mimeMap fileExtension="." mimeType="text/plain" />
    </staticContent>
    <rewrite>
      <rules>
        <clear />
      </rules>
    </rewrite>
  </system.webServer>
  <system.web>
    <authorization>
      <allow users="*"/>
    </authorization>
  </system.web>
</configuration>
0reactions
brainmeyerscommented, Nov 30, 2020

Hi @brainmeyers

I found a way to get HTTPS without upgrading the AppServicePlan on Azure. The solution is to use CloudFlare. They have a free plan with a free SSL certificate. Check out this article: https://www.troyhunt.com/how-to-get-your-ssl-for-free-on-shared/

Thank you @flixius

Read more comments on GitHub >

github_iconTop Results From Across the Web

CheckHttpChallenge failed · Issue #77
Now I'm getting another error: Orchestrator function 'AddCertificate' failed: The activity function 'UpdateSiteBinding' failed: "Failed to ...
Read more >
shibayan appservice-acmebot · Discussions · GitHub
Error creating new certifcate in Azure linux App Service ... The activity function 'CheckHttpChallenge' failed - Challenge file not created in correct ...
Read more >
Failed http-01 challenge - Help
When we try to make a certificate with an http-01 challenge, in verbose mode, we can see the challenge file being created, permissions...
Read more >
helios-ag/leclient
LEFunctions::checkHTTPChallenge($domain, $token, $keyAuthorization); // Checks ... The examples will fail when you run them using the preset example data.
Read more >
Http-01 Challenge failed and Connection refused - nginx
In the server, ufw status returned Status: inactive . After putting pretty-formula.com in related files, I got this error: root@ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found