Am 13.11.2019 um 01:45 schrieb Predrag Stojković:
Hello all.
I’m trying to use Apache PDFBox 2.0.17 to ellectronically sign some
documents, including LTV information.
I have followed the examples provided in class CreateSignature to sign
the document, and in class AddValidationInformation to add LTV
information.
After adding LTV information, size of the PDF file is increased from
230KB to 252KB, so additional information was added in deed.
But, Adobe Reader in Signature panel still shows the label „Signature
is not LTV enabled...“.
Can you please check the attached files and figure out what’s wrong?
I have been unable to verify the signature and to create an LTV with
AddValidationInformation. The later had an unimplemented part, (several
CRL URLs) so I wonder how it worked at all for you (I just fixed that)...
Signature verification didn't work because of a problem with the OCSP
response for "EMAILADDRESS=busile...@gmail.com, CN=www.freetsa.org,
OU=Root CA, O=Free TSA, L=Wuerzburg, ST=Bayern, C=DE" at
http://www.freetsa.org:2560.
On my machine Adobe says nothing about LTV at all. Which is probably as bad.
I wonder if maybe the AddValidationInformation swallows the exception
instead of failing. Or maybe OCSP isn't checked at all. More at a later
time (must sleep now).
Tilman