diff --git a/lib/Service/SignFileService.php b/lib/Service/SignFileService.php index b81f80ea02..08c2f92ebb 100644 --- a/lib/Service/SignFileService.php +++ b/lib/Service/SignFileService.php @@ -279,12 +279,12 @@ public function setVisibleElements(array $list): self { public function sign(): File { $fileToSign = $this->getFileToSing($this->libreSignFile); - $pfxFile = $this->getPfxFile(); + $pfxFileContent = $this->getPfxFile(); switch ($fileToSign->getExtension()) { case 'pdf': $signedFile = $this->pkcs12Handler ->setInputFile($fileToSign) - ->setCertificate($pfxFile) + ->setCertificate($pfxFileContent) ->setVisibleElements($this->elements) ->setPassword($this->password) ->sign(); @@ -292,7 +292,7 @@ public function sign(): File { default: $signedFile = $this->pkcs7Handler ->setInputFile($fileToSign) - ->setCertificate($pfxFile) + ->setCertificate($pfxFileContent) ->setPassword($this->password) ->sign(); }