acme-common: Export canonical paths for storing certificates and challenges
authorToke Høiland-Jørgensen <toke@toke.dk>
Wed, 14 Dec 2022 14:11:58 +0000 (15:11 +0100)
committerToke Høiland-Jørgensen <toke@toke.dk>
Wed, 14 Dec 2022 14:28:23 +0000 (15:28 +0100)
commite3d6422dc551fae6a502a10a554296765e2c59f6
tree0244853cba6fdff7d394337d6b9e8d8e47c52609
parent82558996c90600a6682473cf220f20e8eb13d8ac
acme-common: Export canonical paths for storing certificates and challenges

The contract between the acme-common framework and consumers and hook
scripts is that certificates can be consumed from /etc/ssl/acme and that
web challenges are stored in /var/run/acme/challenge. Make this explicit by
exporting $CERT_DIR and $CHALLENGE_DIR as environment variables as well,
instead of having knowledge of those paths depend on out-of-band
information. We already exported $challenge_dir, but let's change it to
upper-case to make it clear that it's not a user configuration variable.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
net/acme-common/files/acme.sh