Skip to content

Validation with all trusted root certificates #427

Answered by MatthiasValvekens
spapas asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @spapas, that's the default behaviour if you don't specify trust_roots ;).

This is documented in the docstring for ValidationContext.__init__, but apparently that is not picked up by the documentation generator. I should do something about that (holdover from certvalidator prior to me forking it, so I didn't notice).

Background notes: Fetching/describing the system trust is of course a very platform-dependent operation. In the background, pyHanko uses oscrypto to abstract that away, but beware that depending on what kind of validation you are performing, the system trust could contain a bunch of certs that you don't actually want to trust for document signing purposes--most of those ro…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@MatthiasValvekens
Comment options

Answer selected by spapas
@spapas
Comment options

@MatthiasValvekens
Comment options

@spapas
Comment options

@MatthiasValvekens
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants