-
Notifications
You must be signed in to change notification settings - Fork 142
Patch CRL fetch failures #474
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
Conversation
|
Happy to add tests or additional code comments if needed. Let me know if there's anything else I should include to make this easier to review. |
olszomal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really appreciate you finding these issues and sending a PR with a proposed solution.
1f0a5d5 to
d8269c7
Compare
|
@olszomal Not a problem, love the project and more than happy to help where I can! I've updated the branch by dropping the commit that adds |
|
@ChrisThibodeaux Why do you think it's beneficial to invoke We try to adhere to the KISS principle as much as possible (but not more) to facilitate long-term maintainability of this project. |
|
@mtrojnar I'd prefer to drop |
Please do it. Thank you very much for your contribution to the project. |
`application/octet-stream` response types caused CRL/TSA-CRL fetch failures
d8269c7 to
8840ab5
Compare
|
@mtrojnar Done. Just making sure that it does still make sense to enforce |
PR for two major issues with fetching CRLs:
First Bug:
application/octet-streamresponse types caused CRL/TSA-CRL fetch failures. Possibly only an issue using Openssl >= 3.0Error output example:
Curl showing response
Content-Type: application/octet-stream:Failing cert example:
Second Bug:
Unreliable handling of GET responses causing truncated DER data.
Error output example:
To test this endpoint returns a valid CRL:
http://crl.comodoca.com/COMODORSACodeSigningCA.crlby any direct meansopenssl crl -inform DER -in COMODORSACodeSigningCA.crl -noout -textSample output: