Is there a way to turn off the dry run? #2

Closed
opened 2019-07-24 16:49:55 +00:00 by Ghost · 9 comments

Is there any option to turn off the dry run (_greenlock-dryrun-XXXX) in DNS-01?

Is there any option to turn off the dry run (`_greenlock-dryrun-XXXX`) in DNS-01?
Owner

I'd like to understand why you want to turn off the dry run so that I can perhaps address the deeper concern and make it a general solution that benefits everyone.

What's the problem you're facing?

I'd like to understand _why_ you want to turn off the dry run so that I can perhaps address the deeper concern and make it a general solution that benefits everyone. What's the problem you're facing?
Author

I am working on a service where I am serving http requests for user's domain. I wanted to secure these custom domains. I thought instead of getting the user to set 2 records I ask them to set a single CNAME of .acme-challenge.XXXX record pointing to my domain which would in turn have the acme challenge's string. This way I can myself verify the domain and then I can request the challenge and update in my DNS. With the dry run I would need to ask the user to update 2 dns records.

I am pretty new to this ACME so sorry if the idea sounds stupid.

I am working on a service where I am serving http requests for user's domain. I wanted to secure these custom domains. I thought instead of getting the user to set 2 records I ask them to set a single `CNAME` of `.acme-challenge.XXXX` record pointing to my domain which would in turn have the acme challenge's string. This way I can myself verify the domain and then I can request the challenge and update in my DNS. With the dry run I would need to ask the user to update 2 dns records. I am pretty new to this ACME so sorry if the idea sounds stupid.
Owner

That won't work. You have to use TXT records.

Who is your DNS provider?

That won't work. You have to use TXT records. Who is your DNS provider?
Owner

There are a bunch of dns providers so that you just need an API token and you don't have to have manual entry every 90 days:

https://git.rootprojects.org/root?q=acme-dns-01-&tab=&sort=recentupdate

There are a bunch of dns providers so that you just need an API token and you don't have to have manual entry every 90 days: https://git.rootprojects.org/root?q=acme-dns-01-&tab=&sort=recentupdate
Author

Sorry, you got me wrong. I want to issue certificates for my user's domain by getting them to set DNS of their own domain. I thought there is a way to turn off the dry run as I couldn't see any dry run record to be set on https://greenlock.domains/ when I put my domain there. But I couldn't find an option to set it off.

If I understand right greenlock verifies the DNS ownership in the dry run itself so that we don't hit the LE's rate limits by requesting for actual certificates. I believe there should be an option to turn it off if the user of the greenlock library wants to implement this verification/dry-run manually.

I also found a skipDryRun in the code of in acme.js or greenlock. So I thought maybe its an option.

Sorry, you got me wrong. I want to issue certificates for my user's domain by getting them to set DNS of their own domain. I thought there is a way to turn off the dry run as I couldn't see any dry run record to be set on https://greenlock.domains/ when I put my domain there. But I couldn't find an option to set it off. If I understand right greenlock verifies the DNS ownership in the dry run itself so that we don't hit the LE's rate limits by requesting for actual certificates. I believe there should be an option to turn it off if the user of the greenlock library wants to implement this verification/dry-run manually. I also found a `skipDryRun` in the code of in acme.js or greenlock. So I thought maybe its an option.
Owner

You don't need to use set DNS records for the HTTP-01 challenge, which is what you'd have to use if you're setting CNAMEs.

However, in v3, which I've already finished for the browser and will be backporting to node in August, I'll be exposing the DNS challenges different (which I had to do for browser support).

You don't need to use set DNS records for the HTTP-01 challenge, which is what you'd have to use if you're setting CNAMEs. However, in v3, which I've already finished [for the browser](https://greenlock.domains) and will be backporting to node in August, I'll be exposing the DNS challenges different (which I had to do for browser support).
Owner

Oops, hit enter too early.

Are you using http-01 or dns-01?

If you're using dns-01, who is in control of the DNS? The user? Why not user http-01 for that?

Oops, hit enter too early. Are you using http-01 or dns-01? If you're using dns-01, who is in control of the DNS? The user? Why not user http-01 for that?
Author

Yes, I was wondering about that (greenlock in browser) when that when I saw requests to let's encrypt on my network tab.
The user would be in control of the DNS. I think I should be using http-01, I never really gave it a thought I always thought of using the dns-01.

Thanks

Yes, I was wondering about that (greenlock in browser) when that when I saw requests to let's encrypt on my network tab. The user would be in control of the DNS. I think I should be using http-01, I never really gave it a thought I always thought of using the dns-01. Thanks
Owner

Yeah, the dryrun question comes up from time to time, but I don't answer directly because usually it's an indicator of "doing it wrong" / not understanding.

I'm glad that helped.

Yeah, the dryrun question comes up from time to time, but I don't answer directly because usually it's an indicator of "doing it wrong" / not understanding. I'm glad that helped.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/greenlock.js#2
No description provided.