Skip to content
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

acme-common: Create challenge directory on boot #25409

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tohojo
Copy link
Contributor

@tohojo tohojo commented Nov 19, 2024

The challenge directory (for webroot challenges) is on a tmpfs, which means it
doesn't exist on boot. @mipopa reported that some web servers (uhttpd in
particular) don't like being configured to serve files from a non-existent
directory. So add a boot() section to the ACME init script that just creates the
challenge directory, and make sure it runs relatively early. That should take
care of the non-existent directory issue, while still keeping the actual
certificate renewal controlled by cron.


Maintainer: me
Compile tested: No
Run tested: No

The challenge directory (for webroot challenges) is on a tmpfs, which
means it doesn't exist on boot. Some web servers (uhttpd in particular)
don't like being configured to serve files from a non-existent
directory. So add a boot() section to the ACME init script that just
creates the challenge directory, and make sure it runs relatively early.
That should take care of the non-existent directory issue, while still
keeping the actual certificate renewal controlled by cron.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
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