diff --git a/lib/Handler/Pkcs12Handler.php b/lib/Handler/Pkcs12Handler.php index b4fd734a70..755d3f60d5 100644 --- a/lib/Handler/Pkcs12Handler.php +++ b/lib/Handler/Pkcs12Handler.php @@ -107,6 +107,10 @@ public function readCertificate(string $uid, string $privateKey): array { ); } + public function setPfxContent(string $content): void { + $this->pfxContent = $content; + } + /** * Get content of pfx file */ diff --git a/lib/Service/SignFileService.php b/lib/Service/SignFileService.php index 25e4d59e53..b81f80ea02 100644 --- a/lib/Service/SignFileService.php +++ b/lib/Service/SignFileService.php @@ -358,7 +358,7 @@ private function getPfxFile(): string { $this->friendlyName, true ); - $this->pkcs12Handler->savePfx($this->userUniqueIdentifier, $certificate); + $this->pkcs12Handler->setPfxContent($certificate); } catch (TypeError $e) { throw new LibresignException($this->l10n->t('Failure to generate certificate')); } catch (EmptyCertificateException $e) {