aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Changelog1
-rwxr-xr-xclient2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog b/Changelog
index 269d246..34ace54 100644
--- a/Changelog
+++ b/Changelog
@@ -17,6 +17,7 @@ lacme (0.7.1) upstream;
the default section.
- Raise client timeout from 10 to 30s.
- Remove dependency on Types::Serialiser.
+ - client: fail immediately when the accountd is unreachable.
-- Guilhem Moulin <guilhem@fripost.org> Wed, 09 Dec 2020 18:23:22 +0100
diff --git a/client b/client
index c1066c1..b722d59 100755
--- a/client
+++ b/client
@@ -193,7 +193,7 @@ sub acme($;$) {
my $protected = encode_base64url(json()->encode(\%header));
my $data = $protected .'.'. $payload;
$S->printflush($data, "\r\n");
- my $sig = $S->getline();
+ my $sig = $S->getline() // die "ERROR: No response from lacme-accountd\n";
$sig =~ s/\r\n\z// or die;
undef $NONCE; # consume the nonce