Skip to content

Add support for enabled check_hostname in SSL connections#259

Open
glut23 wants to merge 1 commit intopython-smpplib:masterfrom
glut23:ssl_check_hostname_support
Open

Add support for enabled check_hostname in SSL connections#259
glut23 wants to merge 1 commit intopython-smpplib:masterfrom
glut23:ssl_check_hostname_support

Conversation

@glut23
Copy link

@glut23 glut23 commented Mar 25, 2025

While working on an SMPP connection over TLS, my colleague @sakaal and I, noticed that enabling check_hostname option did not work. This was due to the inability to pass server_hostname for the SSL/TLS handshake.

This pull request adds support to ensure hostname verification can be properly enforced in SSL/TLS connections.

Copy link
Member

@code-of-kpp code-of-kpp left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!

I think there is some risk of breaking things for people, who, for example, connect to servers by IP, but I'd accept it: it's better if people would have to face the problem directly than to have a potential silent security issue.

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.

3 participants