Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

"acme cert -webroot" option #59

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

"acme cert -webroot" option #59

wants to merge 1 commit into from

Conversation

bof
Copy link

@bof bof commented Jan 20, 2017

This change provides a new option -webroot to the "acme cert"
subcommand, taking a directory taking a directory as argument,
and mutually exclusive with -dns or -manual.

If that option is used, behavior is similar to -manual, but the
challenge file is directly written to the specified webroot, by
appending ".well-known/acme-challenge/hjxyhksjhdf" to that given
directory, and writing the file there.

By default the file mode will be read/write only for the owner. The
optional "-webroot-mode 0640" argument, taking the usual unix integer
file mode as value, can be used to change that to the specified mode.

The given webroot directory, including subdirectory ".well-known"
and "acme-challenge" in there, must already exist (and of course be
writable to the user running the acme client). No directory is created
automatically, to avoid accidentally throwing stuff into unintended
destinations.

Finally, different from -manual, the challenge file is automatically
removed after the challenge has been completed - whether that
succeeded or failed.

This change provides a new option -webroot to the "acme cert"
subcommand, taking a directory taking a directory as argument,
and mutually exclusive with -dns or -manual.

If that option is used, behavior is similar to -manual, but the
challenge file is directly written to the specified webroot, by
appending ".well-known/acme-challenge/hjxyhksjhdf" to that given
directory, and writing the file there.

By default the file mode will be read/write only for the owner. The
optional "-webroot-mode 0640" argument, taking the usual unix integer
file mode as value, can be used to change that to the specified mode.

The given webroot directory, including subdirectory ".well-known"
and "acme-challenge" in there, must already exist (and of course be
writable to the user running the acme client). No directory is created
automatically, to avoid accidentally throwing stuff into unintended
destinations.

Finally, different from -manual, the challenge file is automatically
_removed_ after the challenge has been completed - whether that
succeeded or failed.
@x1ddos
Copy link
Contributor

x1ddos commented Apr 20, 2017

Oh man, I've been missing on all your PRs somehow. My bad, sorry.
Will review them shortly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants