DDB-1753 #5
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue