-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use email as SAN (Subject Alternative Name)
Signed-off-by: Vitor Mattos <[email protected]>
- Loading branch information
1 parent
df561fd
commit 5e5f671
Showing
6 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,14 +217,15 @@ public function testSignUsingFileIdWithEmptyCertificatePassword() { | |
'userManager' => $user, | ||
]); | ||
$pkcs12Handler = \OC::$server->get(\OCA\Libresign\Handler\Pkcs12Handler::class); | ||
$pkcs12Handler->generateCertificate( | ||
$certificate = $pkcs12Handler->generateCertificate( | ||
[ | ||
'identify' => '[email protected]', | ||
'host' => '[email protected]', | ||
'name' => 'John Doe', | ||
], | ||
'secretPassword', | ||
'username' | ||
); | ||
$pkcs12Handler->savePfx('[email protected]', $certificate); | ||
|
||
$signers = $this->getSignersFromFileId($file->getId()); | ||
$this->request | ||
|
@@ -276,14 +277,15 @@ public function testSignUsingFileIdWithSuccess() { | |
'userManager' => $user, | ||
]); | ||
$pkcs12Handler = \OC::$server->get(\OCA\Libresign\Handler\Pkcs12Handler::class); | ||
$pkcs12Handler->generateCertificate( | ||
$certificate = $pkcs12Handler->generateCertificate( | ||
[ | ||
'identify' => '[email protected]', | ||
'host' => '[email protected]', | ||
'name' => 'John Doe', | ||
], | ||
'secretPassword', | ||
'username' | ||
); | ||
$pkcs12Handler->savePfx('[email protected]', $certificate); | ||
|
||
$mock = $this->createMock(JSignPDF::class); | ||
$mock->method('sign')->willReturn('content'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters