DD-3602: [BACK]. [Доверенность водителю с КЭП] - [реализовать отправку документа через АПИ Диадок]

This commit is contained in:
cherednik 2025-01-09 18:37:38 +04:00
parent 6e87f37ad3
commit 4947b8ea19
1 changed files with 2 additions and 2 deletions

View File

@ -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);