Still confuse with how configuration pyhanko.yml work #54
-
So i have pyhanko.yml like this
and i try to sign my pdf with this command
So i have certificate cert.pem which issued with signerCA.pem and my goal is when i validating the out.pdf pyhanko can trust that certificate but when i sign with that command I got output like this :
so where is my mistake? btw thank a lot for developing library like this really helped me doing my project |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Oops, that seems to be a bug in the code that processes the configuration file: it fails to load the default stamp style if the configuration doesn't override it, but this bug is only triggered if a configuration file is present at all. Apparently it's been in there since the very first release... Thanks a lot for reporting it! I've dealt with the underlying issue and added a regression test (see commit 0839602), so this will be fixed in the next release. In the meantime, you can work around the bug by inserting the following snippet into your config file: stamp-styles:
default:
background: __stamp__
stamp-text: "Digitally signed by %(signer)s.\nTimestamp: %(ts)s." This matches the default style that you would've gotten without supplying any config. Since there's a simple workaround, I don't believe a patch release is necessary to fix just this issue, but the fix will most certainly be present in the next release. :) Thanks again for the report! |
Beta Was this translation helpful? Give feedback.
-
I have more question, can we use key and cert file from URL ? so the key any cert not in the disk |
Beta Was this translation helpful? Give feedback.
-
I have question again, sorry for using previous discussion. So I have done signing and validating pdf with SDK and its work fine, but when I try sign pdf with multiple signature it still can validate the pdf but only display the last signature. So how to display all signature from the pdf ? validation code :
Thank you |
Beta Was this translation helpful? Give feedback.
Oops, that seems to be a bug in the code that processes the configuration file: it fails to load the default stamp style if the configuration doesn't override it, but this bug is only triggered if a configuration file is present at all. Apparently it's been in there since the very first release... Thanks a lot for reporting it!
I've dealt with the underlying issue and added a regression test (see commit 0839602), so this will be fixed in the next release. In the meantime, you can work around the bug by inserting the following snippet into your config file:
This matches …