Skip to content
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

Ignore Content-Type header when certificate of type PEM is detected #9

Merged

Conversation

sagarvora
Copy link
Contributor

Closes MatthiasValvekens/pyHanko#319

Note: I have removed the now-unused constant ACCEPTABLE_PKCS7_PEM_ALIASES. If we still want to keep it, I can revert that change.

Tested locally with editable install:

image

@codecov
Copy link

codecov bot commented Sep 17, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01% ⚠️

Comparison is base (202ef12) 85.66% compared to head (79d764b) 85.66%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
- Coverage   85.66%   85.66%   -0.01%     
==========================================
  Files          50       50              
  Lines        5212     5211       -1     
==========================================
- Hits         4465     4464       -1     
  Misses        747      747              
Flag Coverage Δ
unittests 85.66% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
pyhanko_certvalidator/fetchers/common_utils.py 83.76% <100.00%> (-0.11%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -68,17 +68,6 @@
)


ACCEPTABLE_PKCS7_PEM_ALIASES = frozenset(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@MatthiasValvekens MatthiasValvekens merged commit aabfaa2 into MatthiasValvekens:master Sep 17, 2023
11 checks passed
@sagarvora sagarvora deleted the dont-match-ctype branch September 17, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pyhanko-certvalidator] PEM certificate not getting extracted due to incorrect Content-Type header
2 participants