Skip to content

Commit a15291a

Browse files
committed
fix: align TSA handler errors with connectivity guidance
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 159348f commit a15291a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Handler/SignEngine/JSignPdfHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,10 +671,10 @@ private function checkTsaError(string $errorMessage): void {
671671

672672
if ($isTsaError) {
673673
if (str_contains($errorMessage, 'Invalid TSA') && preg_match("/Invalid TSA '([^']+)'/", $errorMessage, $matches)) {
674-
$friendlyMessage = 'Timestamp Authority (TSA) service is unavailable or misconfigured: ' . $matches[1];
674+
$friendlyMessage = 'Timestamp Authority (TSA) service is unavailable. Check DNS/network/firewall connectivity from this server: ' . $matches[1];
675675
} else {
676676
$friendlyMessage = 'Timestamp Authority (TSA) service error.' . "\n"
677-
. 'Please check the TSA configuration.';
677+
. 'Check TSA endpoint and DNS/network/firewall connectivity from this server.';
678678
}
679679
throw new LibresignException($friendlyMessage);
680680
}

0 commit comments

Comments
 (0)