From 4947b8ea1903d5cfac1123401d35f3833eab7fba Mon Sep 17 00:00:00 2001 From: cherednik Date: Thu, 9 Jan 2025 18:37:38 +0400 Subject: [PATCH] =?UTF-8?q?DD-3602:=20[BACK].=20[=D0=94=D0=BE=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=BD=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20=D0=B2=D0=BE?= =?UTF-8?q?=D0=B4=D0=B8=D1=82=D0=B5=D0=BB=D1=8E=20=D1=81=20=D0=9A=D0=AD?= =?UTF-8?q?=D0=9F]=20-=20[=D1=80=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D1=82=D1=8C=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D1=83=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=B0?= =?UTF-8?q?=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20=D0=90=D0=9F=D0=98=20=D0=94?= =?UTF-8?q?=D0=B8=D0=B0=D0=B4=D0=BE=D0=BA]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/SignDocument/Services/DigitalSignatureService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/SignDocument/Services/DigitalSignatureService.php b/backend/src/SignDocument/Services/DigitalSignatureService.php index 5b5744a..811416b 100644 --- a/backend/src/SignDocument/Services/DigitalSignatureService.php +++ b/backend/src/SignDocument/Services/DigitalSignatureService.php @@ -31,9 +31,9 @@ class DigitalSignatureService $document = $this->api->download($request->url, $token); exec(sprintf('cp %s %s.pdf', $document->tempFileName, $document->tempFileName)); - $signature = exec(sprintf('cryptcp -sign -detached -der %s', $document->tempFileName)); + exec(sprintf('cryptcp -sign -detached -der %s', $document->tempFileName . '.pdf')); - $response = base64_encode($signature); + $response = base64_encode($document->tempFileName . '.sgn'); $this->removeExistingDocumentService->removeExistingDocument($document);