Skip to content

CLI: Trouble to verfiy signed pdfs with pfx certificate store #77

Discussion options

You must be logged in to vote

Hi Thomas,

Thanks for checking in, and for the detailed report! Reading your description, three things come to mind:

  • The default key policy also needs to be overruled when validating a signature involving a certificate without the nonRepudiation key usage bit set. In other words, you need to ensure that your custom validation context is also used when validating the signature (assuming you didn't set it as the default). In your case, that'd mean passing --validation-context setup-a to pyhanko sign validate.\
  • Similarly, pyHanko's default chain of trust (as imported through oscrypto) may or may not agree with your browser's or favourite PDF viewer's trust store. How that's best addressed d…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by MatthiasValvekens
Comment options

You must be logged in to vote
1 reply
@MatthiasValvekens
Comment options

Comment options

You must be logged in to vote
2 replies
@thomasgundlach
Comment options

@MatthiasValvekens
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants