Skip to content

Commit

Permalink
Merge pull request #2566 from LibreSign/backport/2565/stable28
Browse files Browse the repository at this point in the history
[stable28] Fix failure to sign with email
  • Loading branch information
vitormattos authored Mar 21, 2024
2 parents 00ebf6f + af96d71 commit aba4061
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 aba4061

Please sign in to comment.