8000 Add support for --challenge-deploy as an alternative to --acme-dir, also supports DNS-01 challenge style by adelton · Pull Request #301 · diafygi/acme-tiny · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for --challenge-deploy as an alternative to --acme-dir, also supports DNS-01 challenge style #301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

adelton
Copy link
@adelton adelton commented Jun 12, 2025

I'm offering for consideration changes that make it possible to offload the challenge work to external scripts.

So instead of

    --acme-dir /var/www/acme-challenges/

you can use

    --challenge-deploy 'read d t ka ; echo "$ka" > /var/www/acme-challenges/"$t"'

That by itself does not sound useful but it gets useful in situations like

    --challenge-deploy /usr/local/bin/acme-challenge-deploy-to-my-servers

or

    --challenge-deploy 'ssh -i ~/.ssh/acme-deploy acme@web.example.com 2>&1'

The change itself is not ready for merging on top of master as the code exceeds the 200 line limit.

However, when applied on top of other pull requests that are currently open, namely #296, #297, or parts of #273 (I can provide separate PR for just the "Remove comments where the subsequent log.info line can carry the same information" part), it is possible to have this logic within 200 lines.

Moving the challenge deployment logic to external script lends itself nicely to the DNS-01 challenge type support, as the only thing that is needed in the acme-tiny code is a support for the slightly different key authorization token format.

I've been running with this change for a couple of weeks and I feel I can show it now.

adelton added 3 commits June 12, 2025 09:31
to invoke a script to store the key authorization
to the .well-known/acme-challenge/ location, possibly on a different machine.
@adelton adelton mentioned this pull request Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0