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

Fix case sensitivity when checking TLS certificate #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michael-dev
Copy link

SAN DNS entry is not case sensitive, so ignore case of hostname.
Otherwise connections might fail.

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 89.10%. Comparing base (585547b) to head (09e2f69).

Files Patch % Lines
src/pytds/tls.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #165      +/-   ##
==========================================
- Coverage   89.10%   89.10%   -0.01%     
==========================================
  Files          44       44              
  Lines        8095     8092       -3     
==========================================
- Hits         7213     7210       -3     
  Misses        882      882              

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

SAN DNS entry is not case sensitive, so ignore case of hostname.
Use uppercase to preserve DNS: prefix.
@michael-dev michael-dev force-pushed the bugfix/certificate-names-are-caseinsensitive branch from 5ee42a2 to 09e2f69 Compare July 3, 2024 10:39
@denisenkom
Copy link
Owner

Thank you for this pull request. Can you add test coverage for this change?

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.

2 participants