-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception in ValidationContext.validate_usage() during OCSP response parsing #246
Comments
Github doesn't want me to attach the pem formatted cert, so I paste it here:
|
I'm not really good at debugging the ocsp.py code, any pointers are welcome. |
I tried to reproduce the bug you're seeing, but on my end everything seems to work fine. I also manually fetched an OCSP response from that QuoVadis responder and was able to decode it (including the That said, that stack trace has all the hallmarks of "garbage in, garbage out". Parsing in Also, I couldn't help but notice that your line numbers in |
Hi Matthias,
|
Issue seems not to be specific to asn1crypto nor certvalidator:
I think the PR helps debugging similar cases, but it's not a final solution yet. Please feel free to comment. |
While checking a certificate using OCSP, I get the following exception:
(Hashed lines added using print(...) just before the exception happens)
Minimum working implementation:
--> If I set
allow_fetching=False
when creatingValidationContext
, I don't get the exception, but OCSP is not validated.The text was updated successfully, but these errors were encountered: