DDB-1753 #5

Merged
dcherednik merged 21 commits from DDB-1753 into master 2025-03-21 13:37:34 +03:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 4947b8ea19 - Show all commits

View File

@ -31,9 +31,9 @@ class DigitalSignatureService
$document = $this->api->download($request->url, $token); $document = $this->api->download($request->url, $token);
exec(sprintf('cp %s %s.pdf', $document->tempFileName, $document->tempFileName)); 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); $this->removeExistingDocumentService->removeExistingDocument($document);