Skip to content

Commit

Permalink
Fix failure to sign with email
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Mar 21, 2024
1 parent 00ebf6f commit af96d71
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 af96d71

Please sign in to comment.