Git Product home page Git Product logo

Comments (19)

jakubzloczewski avatar jakubzloczewski commented on May 25, 2024 1

@shibayan, now I understand. Thanks for help

from appservice-acmebot.

pawelros avatar pawelros commented on May 25, 2024 1

That was it, I delegated domain and your function worked as a charm. Thank you!

from appservice-acmebot.

shibayan avatar shibayan commented on May 25, 2024

@jakubzloczewski There was a bug in the error log output, so I fixed it. Please restart Azure Functions from Portal and try again.

from appservice-acmebot.

jakubzloczewski avatar jakubzloczewski commented on May 25, 2024

Great, now in log I see Azure DNS zone "mydomain.com" is not found but I have let's say 'mydomian.com' assigned to site.
Does it means that I need something called "Azure DNS" ?

from appservice-acmebot.

shibayan avatar shibayan commented on May 25, 2024

Yes. If you use wildcard certificate, needs Azure DNS zone mydomain.com.
https://docs.microsoft.com/en-us/azure/dns/dns-getstarted-portal

from appservice-acmebot.

jakubzloczewski avatar jakubzloczewski commented on May 25, 2024

But without wildcard will it work or not? How to determine if function will register wildcard cert or not-wildcard cert?

from appservice-acmebot.

shibayan avatar shibayan commented on May 25, 2024

If you are targeting Linux App Service (including Web App for Containers) or wildcard certificate, you need Azure DNS. For Windows App Service, Azure DNS should not be needed.
https://github.com/shibayan/azure-appservice-letsencrypt/blob/master/AzureAppService.LetsEncrypt/AddCertificate.cs#L45

from appservice-acmebot.

pawelros avatar pawelros commented on May 25, 2024

Hey @shibayan I encounter the same issue as @jakubzloczewski. I have Web App for Linux Containers. After reading answer above, I setup DNS Zone for my App. Now I am getting another errror:

"Orchestrator function 'AddCertificate' failed: The activity function 'AnswerChallenges' failed: "Operation is not valid due to the current state of the object.". See the function execution logs for additional details."

Kindly please for some hint.

from appservice-acmebot.

shibayan avatar shibayan commented on May 25, 2024

@RosiV Please check AnswerChallenges monitor logs. Although it seems that the Azure DNS setting has no problem, it is necessary to know the cause of the error.

from appservice-acmebot.

pawelros avatar pawelros commented on May 25, 2024

type: "dns-01",
status: "invalid",
error: {
type: "urn:ietf:params:acme:error:dns",
detail: "DNS problem: NXDOMAIN looking up TXT for _acme-challenge.mydomain.com",
status: 400
},
url: "https://acme-v02.api.letsencrypt.org/acme/challenge//8536221294",
token: "DS1-Lb3d_Xb0k5ZL....."

from appservice-acmebot.

shibayan avatar shibayan commented on May 25, 2024

@RosiV The version you are using may not be up-to-date. If you deployed using Deploy to Azure Button, please execute Restart from Azure Portal. So the latest version will be deployed.

from appservice-acmebot.

shibayan avatar shibayan commented on May 25, 2024

I'm sorry, I misunderstood. Your version is latest.

from appservice-acmebot.

pawelros avatar pawelros commented on May 25, 2024

No problem. So it looks for me like the TXT entry in DNS Zone is invalid. Do I have to update it manually?

from appservice-acmebot.

shibayan avatar shibayan commented on May 25, 2024

Is _acme-challenge TXT record created automatically in Azure DNS as in the image?

image

It is not necessary to create a TXT record manually.

from appservice-acmebot.

shibayan avatar shibayan commented on May 25, 2024

If you created Azure DNS and set up Name Server a while ago, it may not be reflected in the DNS used by Let's Encrypt.
In that case I think that it will work on retry waiting for several hours.

from appservice-acmebot.

pawelros avatar pawelros commented on May 25, 2024

I have just re-created DNS Zone, just to be sure I did not mess up something. Initially Azure created only those entries:
image

Then I added A record set and put www as a value:
image

I checked DNS resolution by ns-lookup and it looks ok.

Then I run AddCertificate_HttpStart function, a new record entry has been added:
image

from appservice-acmebot.

shibayan avatar shibayan commented on May 25, 2024

Your settings and actions are correct, I think that there is a cache in the DNS used by Let's Encrypt. Please try again later.

from appservice-acmebot.

pawelros avatar pawelros commented on May 25, 2024

Hi @shibayan, thank you for your efforts to help resolve my issue. Today I am getting a different error: `` not sure if that is a progress or not:

CheckIsReady Invalid order status is invalid

image

https://acme-v02.api.letsencrypt.org/acme/order/44313992/134282230

Maybe a stupid question, but do I have to setup anything on Let's Encrypt side before starting?

from appservice-acmebot.

shibayan avatar shibayan commented on May 25, 2024

Your domain does not seem to be delegated to Azure DNS. Please change name server to Azure DNS from the domain registrar management portal.

https://docs.microsoft.com/en-us/azure/dns/dns-delegate-domain-azure-dns#delegate-the-domain
https://edi.wang/post/2017/6/2/migrate-domain-dns-to-azure

After setting, please confirm with the command of the following page whether it is correctly delegated.

https://docs.microsoft.com/en-us/azure/dns/dns-delegate-domain-azure-dns#verify-that-the-delegation-is-working

Once this work is done, the certificate will be issued successfully.

from appservice-acmebot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.