Skip to content

Commit 3dd5e26

Browse files
committed
chore: generate a expired certificate
When the days is zero, the expire date will be exactly the same date that the certificate is generated. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 6dbccdf commit 3dd5e26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/JSignPDFTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function testCertificateExpired()
124124
mkdir('vfs://download/jsignpdf', 0755, true);
125125
$params->setjSignPdfJarPath('vfs://download/jsignpdf');
126126
$params->setJSignPdfDownloadUrl('');
127-
$params->setCertificate(file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'certificado.pfx'));
127+
$params->setCertificate($this->getNewCert('123', 0));
128128
$params->setPassword('123');
129129
$signedFilePath = $params->getTempPdfSignedPath();
130130
file_put_contents($signedFilePath, 'signed file content');

0 commit comments

Comments
 (0)