diff options
Diffstat (limited to 'lib/App/Acmeman.pm')
-rw-r--r-- | lib/App/Acmeman.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/App/Acmeman.pm b/lib/App/Acmeman.pm index 84e1dda..65aac4f 100644 --- a/lib/App/Acmeman.pm +++ b/lib/App/Acmeman.pm @@ -26,3 +26,3 @@ use feature 'state'; -our $VERSION = '3.05'; +our $VERSION = '3.06'; @@ -559,3 +559,9 @@ sub register_domain_certificate { if ($ret ne 'valid') { - error("$domain: can't renew certificate: authorization: $ret"); + my $text = "authorization $ret"; + if (my ($ch) = grep { $_->type() eq 'http-01' } $authz->challenges()) { + if (my $err = $ch->error()) { + $text .= ': ' . $err->to_string; + } + } + error("$domain: can't renew certificate: $text"); return 0; |