Signing PDF from P12 with chain and TS #406
Replies: 2 comments 3 replies
-
Hi, Please show at least the relevant section of your code and the full stack trace for that error thrown during validation, it's impossible to tell what's going on with just the info you gave in your post ;).
This is not entirely unexpected, since authenticating to a timestamping service using mutual TLS is not (currently) supported natively in pyHanko. It wouldn't be particularly hard to implement yourself, though. But either way, this error is likely because the certificate presented by the server is not trusted on your system. Either way, impossible to tell without seeing code/full stack trace. |
Beta Was this translation helpful? Give feedback.
-
`from pyhanko import stamp def sign_pdf_with_timestamp(pdf_path, p12_path, p12_password, output_path, ts_server, ts_cert_path, ts_cert_password):
Example usage:sign_pdf_with_timestamp( |
Beta Was this translation helpful? Give feedback.
-
Hi Matthias!
Help me please!
I want to sign PDFs. The certificate is in a P12 file (there are a root and an intermediate certificate in the chain),
I got as far as being able to sign the PDF. But when I click on the visual signature in the PDF, I get that the signature is not validated.
My first question: how will it be validated?
My second question: how can I get a timestamp if I connect to the server with a certificate in a signed p12?
Thx!
Beta Was this translation helpful? Give feedback.
All reactions