Skip to content

Commit

Permalink
Update batch-complex.php
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSlabon committed Nov 16, 2022
1 parent 6a7ce6d commit 3517b60
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/batch-complex.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@
//};

// If you want to add timestamps to the signautre you can pass an appropriate module like this:
//$url = 'https://freetsa.org/tsr'; // UPDATE THIS TO THE SERVICE OF YOUR TRUST
//$timestampModule = new SetaPDF_Signer_Timestamp_Module_Rfc3161_Curl($url);
//$batch->setTimestampModule($timestampModule);
//$batch->getTrustedCertificates()
// ->addFromFile('assets/freetsa-cacert.pem'); // for LTV we need to add this root as a trusted root, too.
$url = 'https://freetsa.org/tsr'; // UPDATE THIS TO THE SERVICE OF YOUR TRUST
$timestampModule = new SetaPDF_Signer_Timestamp_Module_Rfc3161_Curl($url);
$batch->setTimestampModule($timestampModule);
$batch->getTrustedCertificates()
->addFromFile('assets/freetsa-cacert.pem'); // for LTV we need to add this root as a trusted root, too.

try {
$batch->sign($files, true, $callback/*, $tempFileCallback*/);
Expand Down

0 comments on commit 3517b60

Please sign in to comment.