Skip to content

Commit 258283c

Browse files
committed
feat: send TSA Policy OID to JSignPdf
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 6d196d8 commit 258283c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Handler/SignEngine/JSignPdfHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,11 @@ private function signWrapper(JSignPDF $jSignPDF): string {
411411
$params = [
412412
'--hash-algorithm' => $this->getHashAlgorithm(),
413413
'--tsa-server-url' => $this->appConfig->getValueString(Application::APP_ID, 'tsa_url', ''),
414+
'--tsa-policy-oid' => $this->appConfig->getValueString(Application::APP_ID, 'tsa_policy_oid', ''),
414415
];
415416
if (empty($params['--tsa-server-url'])) {
416417
unset($params['--tsa-server-url']);
418+
unset($params['--tsa-policy-oid']);
417419
}
418420
$param = $this->getJSignParam();
419421
$param

0 commit comments

Comments
 (0)