From 3517b607c85fcb8c848624074af01b644faff4be Mon Sep 17 00:00:00 2001 From: Jan Slabon Date: Wed, 16 Nov 2022 11:56:29 +0100 Subject: [PATCH] Update batch-complex.php --- examples/batch-complex.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/batch-complex.php b/examples/batch-complex.php index 2015788..c6a9328 100644 --- a/examples/batch-complex.php +++ b/examples/batch-complex.php @@ -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*/);