Skip to content

Ignore X.509 validations #84

Discussion options

You must be logged in to vote

Hi there!

That depends. The error comes from this bit of logic used in asn1crypto's implementation of __eq__ for name objects: https://github.com/wbond/asn1crypto/blob/8b6e8035b0805828d35656c38d4dca5d6a145075/asn1crypto/x509.py#L817-L837.

This is not an X.509 validation error, but has to do with an encoding error in the certificate or in the signature's SignerInfo---or it's a bug in asn1crypto. One of the Name objects in the signature data contains a piece of Unicode text that has a malformed bidi sequence (according to asn1crypto), which causes problems when trying to compare names somewhere.

So, is it possible to suppress this error? Maybe. That depends on where it enters pyHanko's proc…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oh-mycode
Comment options

Answer selected by MatthiasValvekens
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