From a16b8e45fbf5a47bddbc5b5ca630a367ae8ee164 Mon Sep 17 00:00:00 2001 From: cherednik Date: Thu, 9 Jan 2025 18:39:40 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/SignDocument/Services/DigitalSignatureService.php b/backend/src/SignDocument/Services/DigitalSignatureService.php index 811416b..2a46955 100644 --- a/backend/src/SignDocument/Services/DigitalSignatureService.php +++ b/backend/src/SignDocument/Services/DigitalSignatureService.php @@ -33,7 +33,7 @@ class DigitalSignatureService exec(sprintf('cp %s %s.pdf', $document->tempFileName, $document->tempFileName)); exec(sprintf('cryptcp -sign -detached -der %s', $document->tempFileName . '.pdf')); - $response = base64_encode($document->tempFileName . '.sgn'); + $response = base64_encode(file_get_contents($document->tempFileName . '.sgn')); $this->removeExistingDocumentService->removeExistingDocument($document);