Skip to content

Commit

Permalink
Merge pull request #2565 from LibreSign/bugfix/error-when-sigh-with-e…
Browse files Browse the repository at this point in the history
…mail

Fix failure to sign with email
  • Loading branch information
vitormattos authored Mar 21, 2024
2 parents d496c9d + 01cb054 commit 6937c27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/Handler/Pkcs12Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/SignFileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6937c27

Please sign in to comment.