Changing Challenge to DNS-01? #73

Closed
opened 2021-04-16 09:51:49 +00:00 by Ghost · 2 comments

I've been combing over the documentation for a while now and I'm sure I'm missing something obvious here. As I'm running a private webserver I need to change the challenge to dns-01 (specifically cloudflare).

I've added the acme-dns-01-cloudflare package and setup a token with the correct permissions but I'm so confused as to where I tell greenlock-express to use dns-01 instead of the default?

In server.js am I supposed add a challenges property to the init object?

Any help would be greatly appreciated.

I've been combing over the documentation for a while now and I'm sure I'm missing something obvious here. As I'm running a private webserver I need to change the challenge to dns-01 (specifically cloudflare). I've added the acme-dns-01-cloudflare package and setup a token with the correct permissions but I'm so confused as to where I tell greenlock-express to use dns-01 instead of the default? In server.js am I supposed add a challenges property to the init object? Any help would be greatly appreciated.
Owner

Here's the example from https://git.rootprojects.org/root/greenlock-express.js#easy-to-customize

npx greenlock defaults --challenge-dns-01 acme-dns-01-ovh --challenge-dns-01-token xxxx

If you're using the default JSON config file, that will update it in the correct way.

More detail here: https://git.rootprojects.org/root/acme-dns-01-test.js

Unless you're building an API around it, it's best just to use the CLI for one-off changes.

Does that help?

Here's the example from https://git.rootprojects.org/root/greenlock-express.js#easy-to-customize ```bash npx greenlock defaults --challenge-dns-01 acme-dns-01-ovh --challenge-dns-01-token xxxx ``` If you're using the default JSON config file, that will update it in the correct way. More detail here: https://git.rootprojects.org/root/acme-dns-01-test.js Unless you're building an API around it, it's best just to use the CLI for one-off changes. Does that help?
Author

Thank you so much! I actually managed to work this out but forgot I posted about it here. It actually took me ages to realise I could use the CLI!

Thank you so much! I actually managed to work this out but forgot I posted about it here. It actually took me ages to realise I could use the CLI!
Ghost closed this issue 2021-04-30 08:26:11 +00:00
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-express.js#73
No description provided.