aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-17 23:19:51 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-18 00:42:32 +0100
commit2e455335a9e8aa9aaace98bc4d61f53a2c93b930 (patch)
tree6ed1973b852844bfb9e565d0eabf4a58b54e8d3d
parent044a4cb8b4ba06c6355c5e9978cd5dbfe9df94b2 (diff)
Use 'acme-challenge.XXXXXXXXXX' as template for the temporary ACME challenge directory.
-rw-r--r--Changelog2
-rwxr-xr-xlacme2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog b/Changelog
index c476ee1..5dd416a 100644
--- a/Changelog
+++ b/Changelog
@@ -52,6 +52,8 @@ lacme (0.7.1) upstream;
- client: avoid "Use of uninitialized value in pattern match (m//)"
perl warnings when the accountd socket can't be reached.
- webserver: reopen stdin from /dev/null.
+ - Use 'acme-challenge.XXXXXXXXXX' as template for the temporary ACME
+ challenge directory.
-- Guilhem Moulin <guilhem@fripost.org> Wed, 09 Dec 2020 18:23:22 +0100
diff --git a/lacme b/lacme
index e5f8715..354a4a0 100755
--- a/lacme
+++ b/lacme
@@ -327,7 +327,7 @@ sub spawn_webserver() {
# create a temporary directory; give write access to the ACME client
# and read access to the webserver
- my $tmpdir = File::Temp::->newdir(CLEANUP => 1, TMPDIR => 1) // die;
+ my $tmpdir = File::Temp::->newdir(CLEANUP => 1, TMPDIR => 1, TEMPLATE => "acme-challenge.XXXXXXXXXX") // die;
chmod 0755, $tmpdir or die "chmod: $!";
if ((my $username = $CONFIG->{client}->{user}) ne '') {
my $uid = getpwnam($username) // die "getpwnam($username): $!";