Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

SNI support #523 #1302

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

SNI support #523 #1302

wants to merge 4 commits into from

Conversation

fzarifian
Copy link

As it mentionned on : https://docs.python.org/3/library/ssl.html#socket-creation

Since Python 3.2 and 2.7.9, it is recommended to use the SSLContext.wrap_socket() of an SSLContext instance to wrap sockets as SSLSocket objects. The helper functions create_default_context() returns a new context with secure default settings. The old wrap_socket() function is deprecated since it is both inefficient and has no support for server name indication (SNI) and hostname matching.

Check prerequisites and apply the method :

  • The new one for supported python version
  • the legacy one from other ones
fzarifian and others added 4 commits September 22, 2018 16:09
as it mentionned on : https://docs.python.org/3/library/ssl.html#socket-creation

    Since Python 3.2 and 2.7.9, it is recommended to use the SSLContext.wrap_socket() of an SSLContext instance to wrap sockets as
    SSLSocket objects. The helper functions create_default_context() returns a new context with secure default settings. The old
    wrap_socket() function is deprecated since it is both inefficient and has no support for server name indication (SNI) and hostname
    matching.
raven/utils/http.py:60:5: E303 too many blank lines (2)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
1 participant