chunk_id stringlengths 36 36 | source stringclasses 35
values | source_url stringlengths 0 290 | upstream_license stringclasses 1
value | document_id stringlengths 36 36 | chunk_index int64 0 324k | retrieved_at stringclasses 2
values | chunker_version stringclasses 4
values | content_hash stringlengths 15 64 | content stringlengths 50 44.7k | namespace stringclasses 9
values | source_name stringclasses 35
values | raw_text stringlengths 50 44.7k | cleaned_text stringlengths 50 44.7k | tags stringclasses 49
values | collection_name stringclasses 11
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
97f98a37-bd5c-42c4-aed6-e21f08500aa8 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,798 | supabase-export-v2 | 1048f0901737bac4 | Retrieve certificates from Windows' system cert store. *store_name* may be one of ``CA``, ``ROOT`` or ``MY``. Windows may provide additional cert stores, too.
The function returns a list of (cert_bytes, encoding_type, trust) tuples. The encoding_type specifies the encoding of cert_bytes. It is either
:const:`x509_asn`... | trusted_official_docs | CPython Docs | Retrieve certificates from Windows' system cert store. *store_name* may be one of ``CA``, ``ROOT`` or ``MY``. Windows may provide additional cert stores, too.
The function returns a list of (cert_bytes, encoding_type, trust) tuples. The encoding_type specifies the encoding of cert_bytes. It is either
:const:`x509_asn`... | Retrieve certificates from Windows' system cert store. *store_name* may be one of ``CA``, ``ROOT`` or ``MY``. Windows may provide additional cert stores, too.
The function returns a list of (cert_bytes, encoding_type, trust) tuples. The encoding_type specifies the encoding of cert_bytes. It is either
:const:`x509_asn`... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
98db4c83-cd9b-4a4b-932e-4f4cc0e598e1 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,034 | supabase-export-v2 | 315161304dee446a | sequence of bytes, or :const:`None` if the peer did not provide a certificate. Whether the peer provides a certificate depends on the SSL socket's role:
* for a client SSL socket, the server will always provide a certificate,
regardless of whether validation was required; | trusted_official_docs | CPython Docs | sequence of bytes, or :const:`None` if the peer did not provide a certificate. Whether the peer provides a certificate depends on the SSL socket's role:
* for a client SSL socket, the server will always provide a certificate,
regardless of whether validation was required; | sequence of bytes, or :const:`None` if the peer did not provide a certificate. Whether the peer provides a certificate depends on the SSL socket's role:
* for a client SSL socket, the server will always provide a certificate,
regardless of whether validation was required; | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
998a48a4-dfd0-44fe-8d58-cebb996d7825 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,449 | supabase-export-v2 | ed455858b0bb79f6 | :rfc:`RFC 1422: Privacy Enhancement for Internet Electronic Mail: Part II: Certificate-Based Key Management <1422>` Steve Kent
:rfc:`RFC 4086: Randomness Requirements for Security <4086>`
Donald E. Eastlake, Jeffrey I. Schiller, Steve Crocker | trusted_official_docs | CPython Docs | :rfc:`RFC 1422: Privacy Enhancement for Internet Electronic Mail: Part II: Certificate-Based Key Management <1422>` Steve Kent
:rfc:`RFC 4086: Randomness Requirements for Security <4086>`
Donald E. Eastlake, Jeffrey I. Schiller, Steve Crocker | :rfc:`RFC 1422: Privacy Enhancement for Internet Electronic Mail: Part II: Certificate-Based Key Management <1422>` Steve Kent
:rfc:`RFC 4086: Randomness Requirements for Security <4086>`
Donald E. Eastlake, Jeffrey I. Schiller, Steve Crocker | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9ac3330c-7be9-441e-a0fc-5d04abbf02d8 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,203 | supabase-export-v2 | 2d531c899d428f2a | .. method:: SSLContext.set_servername_callback(server_name_callback)
This is a legacy API retained for backwards compatibility. When possible,
you should use :attr:`sni_callback` instead. The given *server_name_callback*
is similar to *sni_callback*, except that when the server hostname is an
IDN-encoded internation... | trusted_official_docs | CPython Docs | .. method:: SSLContext.set_servername_callback(server_name_callback)
This is a legacy API retained for backwards compatibility. When possible,
you should use :attr:`sni_callback` instead. The given *server_name_callback*
is similar to *sni_callback*, except that when the server hostname is an
IDN-encoded internation... | .. method:: SSLContext.set_servername_callback(server_name_callback)
This is a legacy API retained for backwards compatibility. When possible,
you should use :attr:`sni_callback` instead. The given *server_name_callback*
is similar to *sni_callback*, except that when the server hostname is an
IDN-encoded internation... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9b9a6ad8-0792-435c-b5f4-30a51cbb4e86 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,816 | supabase-export-v2 | 4bd8d5294c0f3eed | .. data:: CERT_REQUIRED
Possible value for :attr:`SSLContext.verify_mode`. In this mode, certificates are
required from the other side of the socket connection; an :class:`SSLError`
will be raised if no certificate is provided, or if its validation fails. This mode is **not** sufficient to verify a certificate in cli... | trusted_official_docs | CPython Docs | .. data:: CERT_REQUIRED
Possible value for :attr:`SSLContext.verify_mode`. In this mode, certificates are
required from the other side of the socket connection; an :class:`SSLError`
will be raised if no certificate is provided, or if its validation fails. This mode is **not** sufficient to verify a certificate in cli... | .. data:: CERT_REQUIRED
Possible value for :attr:`SSLContext.verify_mode`. In this mode, certificates are
required from the other side of the socket connection; an :class:`SSLError`
will be raised if no certificate is provided, or if its validation fails. This mode is **not** sufficient to verify a certificate in cli... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9c4b9be5-73a4-433e-928e-418751826e37 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,818 | supabase-export-v2 | a5fe7cee8843faaf | provides mandatory TLS client cert authentication. A client certificate request is sent to the client and the client must provide a valid and trusted certificate.
Use of this setting requires a valid set of CA certificates to
be passed to :meth:`SSLContext.load_verify_locations`. | trusted_official_docs | CPython Docs | provides mandatory TLS client cert authentication. A client certificate request is sent to the client and the client must provide a valid and trusted certificate.
Use of this setting requires a valid set of CA certificates to
be passed to :meth:`SSLContext.load_verify_locations`. | provides mandatory TLS client cert authentication. A client certificate request is sent to the client and the client must provide a valid and trusted certificate.
Use of this setting requires a valid set of CA certificates to
be passed to :meth:`SSLContext.load_verify_locations`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9de9397b-fe42-4514-9d11-371d82c904ee | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,715 | supabase-export-v2 | 65252ca50e3a7a63 | be `completely broken <https://en.wikipedia.org/wiki/POODLE>`_. If you still wish to continue to use this function but still allow SSL 3.0 connections you can re-enable them using::
ctx = ssl.create_default_context(Purpose.CLIENT_AUTH)
ctx.options &= ~ssl.OP_NO_SSLv3 | trusted_official_docs | CPython Docs | be `completely broken <https://en.wikipedia.org/wiki/POODLE>`_. If you still wish to continue to use this function but still allow SSL 3.0 connections you can re-enable them using::
ctx = ssl.create_default_context(Purpose.CLIENT_AUTH)
ctx.options &= ~ssl.OP_NO_SSLv3 | be `completely broken <https://en.wikipedia.org/wiki/POODLE>`_. If you still wish to continue to use this function but still allow SSL 3.0 connections you can re-enable them using::
ctx = ssl.create_default_context(Purpose.CLIENT_AUTH)
ctx.options &= ~ssl.OP_NO_SSLv3 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9f20f690-f871-4b0f-8c49-be90a0d6050a | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,385 | supabase-export-v2 | aa1d68b1f3b58b22 | - SSL protocol handling - Network IO
The network IO API is identical to that provided by :class:`socket.socket`,
from which :class:`SSLSocket` also inherits. This allows an SSL socket to be
used as a drop-in replacement for a regular socket, making it very easy to add
SSL support to an existing application. | trusted_official_docs | CPython Docs | - SSL protocol handling - Network IO
The network IO API is identical to that provided by :class:`socket.socket`,
from which :class:`SSLSocket` also inherits. This allows an SSL socket to be
used as a drop-in replacement for a regular socket, making it very easy to add
SSL support to an existing application. | - SSL protocol handling - Network IO
The network IO API is identical to that provided by :class:`socket.socket`,
from which :class:`SSLSocket` also inherits. This allows an SSL socket to be
used as a drop-in replacement for a regular socket, making it very easy to add
SSL support to an existing application. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9f24b563-b598-4c79-a200-a00d497fedae | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,390 | supabase-export-v2 | 69c11aba5303ca32 | SSL connection but does not provide any network IO itself. IO needs to be performed through separate "BIO" objects which are OpenSSL's IO abstraction layer.
This class has no public constructor. An :class:`SSLObject` instance
must be created using the :meth:`~SSLContext.wrap_bio` method. This
method will create the :... | trusted_official_docs | CPython Docs | SSL connection but does not provide any network IO itself. IO needs to be performed through separate "BIO" objects which are OpenSSL's IO abstraction layer.
This class has no public constructor. An :class:`SSLObject` instance
must be created using the :meth:`~SSLContext.wrap_bio` method. This
method will create the :... | SSL connection but does not provide any network IO itself. IO needs to be performed through separate "BIO" objects which are OpenSSL's IO abstraction layer.
This class has no public constructor. An :class:`SSLObject` instance
must be created using the :meth:`~SSLContext.wrap_bio` method. This
method will create the :... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9f64f6d6-d417-4649-bd42-33c96e170718 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,415 | supabase-export-v2 | 2589cde62596f6a3 | .. method:: MemoryBIO.write_eof()
Write an EOF marker to the memory BIO. After this method has been called, it
is illegal to call :meth:`~MemoryBIO.write`. The attribute :attr:`eof` will
become true after all data currently in the buffer has been read. | trusted_official_docs | CPython Docs | .. method:: MemoryBIO.write_eof()
Write an EOF marker to the memory BIO. After this method has been called, it
is illegal to call :meth:`~MemoryBIO.write`. The attribute :attr:`eof` will
become true after all data currently in the buffer has been read. | .. method:: MemoryBIO.write_eof()
Write an EOF marker to the memory BIO. After this method has been called, it
is illegal to call :meth:`~MemoryBIO.write`. The attribute :attr:`eof` will
become true after all data currently in the buffer has been read. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9fa89d5e-cc34-4f13-bacc-a0b618207833 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,356 | supabase-export-v2 | 637107e323d69977 | Now the SSL channel is established and the certificate verified, you can proceed to talk with the server::
>>> conn.sendall(b"HEAD / HTTP/1.0\r\nHost: linuxfr.org\r\n\r\n")
>>> pprint.pprint(conn.recv(1024).split(b"\r\n"))
[b'HTTP/1.1 200 OK',
b'Date: Sat, 18 Oct 2014 18:27:20 GMT',
b'Server: nginx',
b'Content-Typ... | trusted_official_docs | CPython Docs | Now the SSL channel is established and the certificate verified, you can proceed to talk with the server::
>>> conn.sendall(b"HEAD / HTTP/1.0\r\nHost: linuxfr.org\r\n\r\n")
>>> pprint.pprint(conn.recv(1024).split(b"\r\n"))
[b'HTTP/1.1 200 OK',
b'Date: Sat, 18 Oct 2014 18:27:20 GMT',
b'Server: nginx',
b'Content-Typ... | Now the SSL channel is established and the certificate verified, you can proceed to talk with the server::
>>> conn.sendall(b"HEAD / HTTP/1.0\r\nHost: linuxfr.org\r\n\r\n")
>>> pprint.pprint(conn.recv(1024).split(b"\r\n"))
[b'HTTP/1.1 200 OK',
b'Date: Sat, 18 Oct 2014 18:27:20 GMT',
b'Server: nginx',
b'Content-Typ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a292e998-6efe-45b4-a2bc-898153815fec | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,250 | supabase-export-v2 | d89e5bcafc2840aa | .. attribute:: SSLContext.keylog_filename
Write TLS keys to a keylog file, whenever key material is generated or
received. The keylog file is designed for debugging purposes only. The
file format is specified by NSS and used by many traffic analyzers such
as Wireshark. The log file is opened in append-only mode. Wri... | trusted_official_docs | CPython Docs | .. attribute:: SSLContext.keylog_filename
Write TLS keys to a keylog file, whenever key material is generated or
received. The keylog file is designed for debugging purposes only. The
file format is specified by NSS and used by many traffic analyzers such
as Wireshark. The log file is opened in append-only mode. Wri... | .. attribute:: SSLContext.keylog_filename
Write TLS keys to a keylog file, whenever key material is generated or
received. The keylog file is designed for debugging purposes only. The
file format is specified by NSS and used by many traffic analyzers such
as Wireshark. The log file is opened in append-only mode. Wri... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a4721190-d369-4a8a-81d7-dc17192dc6d0 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,371 | supabase-export-v2 | 337277a4ae226de7 | behave slightly different than regular sockets in non-blocking mode. When working with non-blocking sockets, there are thus several things you need to be aware of:
- Most :class:`SSLSocket` methods will raise either
:exc:`SSLWantWriteError` or :exc:`SSLWantReadError` instead of
:exc:`BlockingIOError` if an I/O operat... | trusted_official_docs | CPython Docs | behave slightly different than regular sockets in non-blocking mode. When working with non-blocking sockets, there are thus several things you need to be aware of:
- Most :class:`SSLSocket` methods will raise either
:exc:`SSLWantWriteError` or :exc:`SSLWantReadError` instead of
:exc:`BlockingIOError` if an I/O operat... | behave slightly different than regular sockets in non-blocking mode. When working with non-blocking sockets, there are thus several things you need to be aware of:
- Most :class:`SSLSocket` methods will raise either
:exc:`SSLWantWriteError` or :exc:`SSLWantReadError` instead of
:exc:`BlockingIOError` if an I/O operat... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a4b76908-f9c0-45a1-afac-4d5c3e3a94c4 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,347 | supabase-export-v2 | ab0bc330e260e4e7 | >>> context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) >>> context.load_verify_locations("/etc/ssl/certs/ca-bundle.crt")
(this snippet assumes your operating system places a bundle of all CA
certificates in ``/etc/ssl/certs/ca-bundle.crt``; if not, you'll get an
error and have to adjust the location) | trusted_official_docs | CPython Docs | >>> context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) >>> context.load_verify_locations("/etc/ssl/certs/ca-bundle.crt")
(this snippet assumes your operating system places a bundle of all CA
certificates in ``/etc/ssl/certs/ca-bundle.crt``; if not, you'll get an
error and have to adjust the location) | >>> context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) >>> context.load_verify_locations("/etc/ssl/certs/ca-bundle.crt")
(this snippet assumes your operating system places a bundle of all CA
certificates in ``/etc/ssl/certs/ca-bundle.crt``; if not, you'll get an
error and have to adjust the location) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a5aad726-48e5-493c-9321-198d9bf5b22c | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,270 | supabase-export-v2 | 9694ccda788935dd | request a TLS client certificate during the initial handshake. When enabled, a server may request a TLS client certificate at any time after the handshake.
When enabled on client-side sockets, the client signals the server that
it supports post-handshake authentication. | trusted_official_docs | CPython Docs | request a TLS client certificate during the initial handshake. When enabled, a server may request a TLS client certificate at any time after the handshake.
When enabled on client-side sockets, the client signals the server that
it supports post-handshake authentication. | request a TLS client certificate during the initial handshake. When enabled, a server may request a TLS client certificate at any time after the handshake.
When enabled on client-side sockets, the client signals the server that
it supports post-handshake authentication. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a5e53325-ba9f-44b8-9e92-5ed0bdf521bf | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,307 | supabase-export-v2 | 77e713f475fcfd31 | In general, certificate based authentication should be preferred over this method.
The parameter ``callback`` is a callable object with the signature:
``def callback(identity: str | None) -> bytes``. The ``identity`` parameter is an optional identity sent by the client which can
be used to select a corresponding PSK.... | trusted_official_docs | CPython Docs | In general, certificate based authentication should be preferred over this method.
The parameter ``callback`` is a callable object with the signature:
``def callback(identity: str | None) -> bytes``. The ``identity`` parameter is an optional identity sent by the client which can
be used to select a corresponding PSK.... | In general, certificate based authentication should be preferred over this method.
The parameter ``callback`` is a callable object with the signature:
``def callback(identity: str | None) -> bytes``. The ``identity`` parameter is an optional identity sent by the client which can
be used to select a corresponding PSK.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a5fd37c5-5e0d-4a80-8555-92cc699ab592 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,159 | supabase-export-v2 | 102f3fe7148945bf | .. method:: SSLContext.set_default_verify_paths()
Load a set of default "certification authority" (CA) certificates from
a filesystem path defined when building the OpenSSL library. Unfortunately,
there's no easy way to know whether this method succeeds: no error is
returned if no certificates are to be found. When ... | trusted_official_docs | CPython Docs | .. method:: SSLContext.set_default_verify_paths()
Load a set of default "certification authority" (CA) certificates from
a filesystem path defined when building the OpenSSL library. Unfortunately,
there's no easy way to know whether this method succeeds: no error is
returned if no certificates are to be found. When ... | .. method:: SSLContext.set_default_verify_paths()
Load a set of default "certification authority" (CA) certificates from
a filesystem path defined when building the OpenSSL library. Unfortunately,
there's no easy way to know whether this method succeeds: no error is
returned if no certificates are to be found. When ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a6bad5d5-6f92-49f8-93c9-f1e2a8f076e3 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,935 | supabase-export-v2 | d153a29c967d3c22 | .. data:: HAS_ECDH
Whether the OpenSSL library has built-in support for the Elliptic Curve-based
Diffie-Hellman key exchange. This should be true unless the feature was
explicitly disabled by the distributor. | trusted_official_docs | CPython Docs | .. data:: HAS_ECDH
Whether the OpenSSL library has built-in support for the Elliptic Curve-based
Diffie-Hellman key exchange. This should be true unless the feature was
explicitly disabled by the distributor. | .. data:: HAS_ECDH
Whether the OpenSSL library has built-in support for the Elliptic Curve-based
Diffie-Hellman key exchange. This should be true unless the feature was
explicitly disabled by the distributor. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a6f89c81-f5d7-4b80-886d-56ae42399f6c | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,349 | supabase-export-v2 | 0051c3d81a9a5f72 | cert validation and hostname verification. :attr:`~SSLContext.verify_mode` is set to :data:`CERT_REQUIRED` and :attr:`~SSLContext.check_hostname` is set to ``True``. All other protocols create SSL contexts with insecure defaults.
When you use the context to connect to a server, :const:`CERT_REQUIRED`
and :attr:`~SSLCon... | trusted_official_docs | CPython Docs | cert validation and hostname verification. :attr:`~SSLContext.verify_mode` is set to :data:`CERT_REQUIRED` and :attr:`~SSLContext.check_hostname` is set to ``True``. All other protocols create SSL contexts with insecure defaults.
When you use the context to connect to a server, :const:`CERT_REQUIRED`
and :attr:`~SSLCon... | cert validation and hostname verification. :attr:`~SSLContext.verify_mode` is set to :data:`CERT_REQUIRED` and :attr:`~SSLContext.check_hostname` is set to ``True``. All other protocols create SSL contexts with insecure defaults.
When you use the context to connect to a server, :const:`CERT_REQUIRED`
and :attr:`~SSLCon... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a8dfec29-9360-4869-a731-8f0339797d99 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,365 | supabase-export-v2 | b35038394ef3f6a8 | while True: newsocket, fromaddr = bindsocket.accept() connstream = context.wrap_socket(newsocket, server_side=True) try: deal_with_client(connstream) finally: connstream.shutdown(socket.SHUT_RDWR) connstream.close()
Then you'll read data from the ``connstream`` and do something with it till you
are finished with the cl... | trusted_official_docs | CPython Docs | while True: newsocket, fromaddr = bindsocket.accept() connstream = context.wrap_socket(newsocket, server_side=True) try: deal_with_client(connstream) finally: connstream.shutdown(socket.SHUT_RDWR) connstream.close()
Then you'll read data from the ``connstream`` and do something with it till you
are finished with the cl... | while True: newsocket, fromaddr = bindsocket.accept() connstream = context.wrap_socket(newsocket, server_side=True) try: deal_with_client(connstream) finally: connstream.shutdown(socket.SHUT_RDWR) connstream.close()
Then you'll read data from the ``connstream`` and do something with it till you
are finished with the cl... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a93cc5a9-2e7d-4c7b-99cb-4f7604cdf31e | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,138 | supabase-export-v2 | 6c9cbeac826c791b | .. method:: SSLContext.load_verify_locations(cafile=None, capath=None, cadata=None)
Load a set of "certification authority" (CA) certificates used to validate
other peers' certificates when :data:`verify_mode` is other than
:data:`CERT_NONE`. At least one of *cafile* or *capath* must be specified. | trusted_official_docs | CPython Docs | .. method:: SSLContext.load_verify_locations(cafile=None, capath=None, cadata=None)
Load a set of "certification authority" (CA) certificates used to validate
other peers' certificates when :data:`verify_mode` is other than
:data:`CERT_NONE`. At least one of *cafile* or *capath* must be specified. | .. method:: SSLContext.load_verify_locations(cafile=None, capath=None, cadata=None)
Load a set of "certification authority" (CA) certificates used to validate
other peers' certificates when :data:`verify_mode` is other than
:data:`CERT_NONE`. At least one of *cafile* or *capath* must be specified. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a9a36b8b-106d-4435-9221-a12abbce58bf | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,189 | supabase-export-v2 | 198b5c05fc94e0eb | handshake, and will play out according to the `Application Layer Protocol Negotiation <https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation>`_. After a successful handshake, the :meth:`SSLSocket.selected_npn_protocol` method will return the agreed-upon protocol.
This method will raise :exc:`NotImplement... | trusted_official_docs | CPython Docs | handshake, and will play out according to the `Application Layer Protocol Negotiation <https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation>`_. After a successful handshake, the :meth:`SSLSocket.selected_npn_protocol` method will return the agreed-upon protocol.
This method will raise :exc:`NotImplement... | handshake, and will play out according to the `Application Layer Protocol Negotiation <https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation>`_. After a successful handshake, the :meth:`SSLSocket.selected_npn_protocol` method will return the agreed-upon protocol.
This method will raise :exc:`NotImplement... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
aa6d6ad7-fba4-47c5-b6a6-3680d1639708 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,370 | supabase-export-v2 | 31fa3e8217722de0 | Notes on non-blocking sockets -----------------------------
SSL sockets behave slightly different than regular sockets in
non-blocking mode. When working with non-blocking sockets, there are
thus several things you need to be aware of: | trusted_official_docs | CPython Docs | Notes on non-blocking sockets -----------------------------
SSL sockets behave slightly different than regular sockets in
non-blocking mode. When working with non-blocking sockets, there are
thus several things you need to be aware of: | Notes on non-blocking sockets -----------------------------
SSL sockets behave slightly different than regular sockets in
non-blocking mode. When working with non-blocking sockets, there are
thus several things you need to be aware of: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ac7aa5d5-791b-4409-8691-6643a5234b7e | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,219 | supabase-export-v2 | bf44cec6321a7538 | The parameter ``server_side`` is a boolean which identifies whether server-side or client-side behavior is desired from this socket.
For client-side sockets, the context construction is lazy; if the
underlying socket isn't connected yet, the context construction will be
performed after :meth:`connect` is called on th... | trusted_official_docs | CPython Docs | The parameter ``server_side`` is a boolean which identifies whether server-side or client-side behavior is desired from this socket.
For client-side sockets, the context construction is lazy; if the
underlying socket isn't connected yet, the context construction will be
performed after :meth:`connect` is called on th... | The parameter ``server_side`` is a boolean which identifies whether server-side or client-side behavior is desired from this socket.
For client-side sockets, the context construction is lazy; if the
underlying socket isn't connected yet, the context construction will be
performed after :meth:`connect` is called on th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ac9d1024-cd51-4219-93ee-b40713b32333 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,773 | supabase-export-v2 | 79671df9efc0b84c | .. function:: RAND_add(bytes, entropy, /)
Mix the given *bytes* into the SSL pseudo-random number generator. The
parameter *entropy* (a float) is a lower bound on the entropy contained in
string (so you can always use ``0.0``). See :rfc:`1750` for more
information on sources of entropy. | trusted_official_docs | CPython Docs | .. function:: RAND_add(bytes, entropy, /)
Mix the given *bytes* into the SSL pseudo-random number generator. The
parameter *entropy* (a float) is a lower bound on the entropy contained in
string (so you can always use ``0.0``). See :rfc:`1750` for more
information on sources of entropy. | .. function:: RAND_add(bytes, entropy, /)
Mix the given *bytes* into the SSL pseudo-random number generator. The
parameter *entropy* (a float) is a lower bound on the entropy contained in
string (so you can always use ``0.0``). See :rfc:`1750` for more
information on sources of entropy. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ada6f3bb-3f61-49b6-bd43-e8a526e8d6a1 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,809 | supabase-export-v2 | c7c135a072df094a | client-side sockets, just about any cert is accepted. Validation errors, such as untrusted or expired cert, are ignored and do not abort the TLS/SSL handshake.
In server mode, no certificate is requested from the client, so the client
does not send any for client cert authentication. | trusted_official_docs | CPython Docs | client-side sockets, just about any cert is accepted. Validation errors, such as untrusted or expired cert, are ignored and do not abort the TLS/SSL handshake.
In server mode, no certificate is requested from the client, so the client
does not send any for client cert authentication. | client-side sockets, just about any cert is accepted. Validation errors, such as untrusted or expired cert, are ignored and do not abort the TLS/SSL handshake.
In server mode, no certificate is requested from the client, so the client
does not send any for client cert authentication. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ae765716-b912-49e1-b5ad-4a2b5c4ce1d3 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,738 | supabase-export-v2 | a570f22fd71d6e18 | .. attribute:: library
A string mnemonic designating the OpenSSL submodule in which the error
occurred, such as ``SSL``, ``PEM`` or ``X509``. The range of possible
values depends on the OpenSSL version. | trusted_official_docs | CPython Docs | .. attribute:: library
A string mnemonic designating the OpenSSL submodule in which the error
occurred, such as ``SSL``, ``PEM`` or ``X509``. The range of possible
values depends on the OpenSSL version. | .. attribute:: library
A string mnemonic designating the OpenSSL submodule in which the error
occurred, such as ``SSL``, ``PEM`` or ``X509``. The range of possible
values depends on the OpenSSL version. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
afa4818e-ae7b-46d8-8a6b-b70ddebf7841 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,155 | supabase-export-v2 | 3b9007fd99540df2 | Get a list of groups implemented for key agreement, taking into account the current TLS :attr:`~SSLContext.minimum_version` and :attr:`~SSLContext.maximum_version` values. For example::
>>> ctx = ssl.create_default_context()
>>> ctx.minimum_version = ssl.TLSVersion.TLSv1_3
>>> ctx.maximum_version = ssl.TLSVersion.TLS... | trusted_official_docs | CPython Docs | Get a list of groups implemented for key agreement, taking into account the current TLS :attr:`~SSLContext.minimum_version` and :attr:`~SSLContext.maximum_version` values. For example::
>>> ctx = ssl.create_default_context()
>>> ctx.minimum_version = ssl.TLSVersion.TLSv1_3
>>> ctx.maximum_version = ssl.TLSVersion.TLS... | Get a list of groups implemented for key agreement, taking into account the current TLS :attr:`~SSLContext.minimum_version` and :attr:`~SSLContext.maximum_version` values. For example::
>>> ctx = ssl.create_default_context()
>>> ctx.minimum_version = ssl.TLSVersion.TLSv1_3
>>> ctx.maximum_version = ssl.TLSVersion.TLS... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b0982256-deee-43d9-a8d3-67d6b74c3908 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,749 | supabase-export-v2 | 46609efadcdade1b | .. exception:: SSLWantWriteError
A subclass of :exc:`SSLError` raised by a :ref:`non-blocking SSL socket
<ssl-nonblocking>` when trying to read or write data, but more data needs
to be sent on the underlying TCP transport before the request can be
fulfilled. | trusted_official_docs | CPython Docs | .. exception:: SSLWantWriteError
A subclass of :exc:`SSLError` raised by a :ref:`non-blocking SSL socket
<ssl-nonblocking>` when trying to read or write data, but more data needs
to be sent on the underlying TCP transport before the request can be
fulfilled. | .. exception:: SSLWantWriteError
A subclass of :exc:`SSLError` raised by a :ref:`non-blocking SSL socket
<ssl-nonblocking>` when trying to read or write data, but more data needs
to be sent on the underlying TCP transport before the request can be
fulfilled. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b152d36e-2991-4c88-8e08-5196a0cf96e2 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,322 | supabase-export-v2 | 925fa030677cd4a0 | certificate. The certificate also contains information about the time period over which it is valid. This is expressed as two fields, called "notBefore" and "notAfter".
In the Python use of certificates, a client or server can use a certificate to
prove who they are. The other side of a network connection can also be r... | trusted_official_docs | CPython Docs | certificate. The certificate also contains information about the time period over which it is valid. This is expressed as two fields, called "notBefore" and "notAfter".
In the Python use of certificates, a client or server can use a certificate to
prove who they are. The other side of a network connection can also be r... | certificate. The certificate also contains information about the time period over which it is valid. This is expressed as two fields, called "notBefore" and "notAfter".
In the Python use of certificates, a client or server can use a certificate to
prove who they are. The other side of a network connection can also be r... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b4acb174-82b1-4530-a021-0e06c5817115 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,707 | supabase-export-v2 | 47e084602b05ecca | .. function:: create_default_context(purpose=Purpose.SERVER_AUTH, *,\ cafile=None, capath=None, cadata=None)
Return a new :class:`SSLContext` object with default settings for
the given *purpose*. The settings are chosen by the :mod:`!ssl` module,
and usually represent a higher security level than when calling the
:c... | trusted_official_docs | CPython Docs | .. function:: create_default_context(purpose=Purpose.SERVER_AUTH, *,\ cafile=None, capath=None, cadata=None)
Return a new :class:`SSLContext` object with default settings for
the given *purpose*. The settings are chosen by the :mod:`!ssl` module,
and usually represent a higher security level than when calling the
:c... | .. function:: create_default_context(purpose=Purpose.SERVER_AUTH, *,\ cafile=None, capath=None, cadata=None)
Return a new :class:`SSLContext` object with default settings for
the given *purpose*. The settings are chosen by the :mod:`!ssl` module,
and usually represent a higher security level than when calling the
:c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b553beb5-5263-4b22-b5fd-50b3805ff9f8 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,783 | supabase-export-v2 | 42764004f07bc349 | specified by 'GMT' timezone in the input string. Local timezone was used previously. Return an integer (no fractions of a second in the input format)
.. function:: get_server_certificate(addr, ssl_version=PROTOCOL_TLS_CLIENT, \
ca_certs=None[, timeout]) | trusted_official_docs | CPython Docs | specified by 'GMT' timezone in the input string. Local timezone was used previously. Return an integer (no fractions of a second in the input format)
.. function:: get_server_certificate(addr, ssl_version=PROTOCOL_TLS_CLIENT, \
ca_certs=None[, timeout]) | specified by 'GMT' timezone in the input string. Local timezone was used previously. Return an integer (no fractions of a second in the input format)
.. function:: get_server_certificate(addr, ssl_version=PROTOCOL_TLS_CLIENT, \
ca_certs=None[, timeout]) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b5c0df47-ff6e-46de-b91b-0111d3973ce0 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,120 | supabase-export-v2 | fafa8ab37444c427 | .. note::
:class:`SSLContext` is designed to be shared and used by multiple
connections. Thus, it is thread-safe as long as it is not reconfigured after being
used by a connection. | trusted_official_docs | CPython Docs | .. note::
:class:`SSLContext` is designed to be shared and used by multiple
connections. Thus, it is thread-safe as long as it is not reconfigured after being
used by a connection. | .. note::
:class:`SSLContext` is designed to be shared and used by multiple
connections. Thus, it is thread-safe as long as it is not reconfigured after being
used by a connection. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b796ea3b-77f4-4fb9-a355-337a791b0236 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,308 | supabase-export-v2 | 516a15d31639ee0d | to select a corresponding PSK. The return value is a :term:`bytes-like object` representing the pre-shared key. Return a zero length PSK to reject the connection.
Setting ``callback`` to :const:`None` removes any existing callback. | trusted_official_docs | CPython Docs | to select a corresponding PSK. The return value is a :term:`bytes-like object` representing the pre-shared key. Return a zero length PSK to reject the connection.
Setting ``callback`` to :const:`None` removes any existing callback. | to select a corresponding PSK. The return value is a :term:`bytes-like object` representing the pre-shared key. Return a zero length PSK to reject the connection.
Setting ``callback`` to :const:`None` removes any existing callback. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b858eb65-bb68-45e4-a4b6-fbf2f2463969 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,196 | supabase-export-v2 | e737ec1e612987fa | the third argument is the original :class:`SSLContext`. The server name argument is text. For internationalized domain name, the server name is an IDN A-label (``"xn--pythn-mua.org"``).
A typical use of this callback is to change the :class:`ssl.SSLSocket`'s
:attr:`SSLSocket.context` attribute to a new object of type
... | trusted_official_docs | CPython Docs | the third argument is the original :class:`SSLContext`. The server name argument is text. For internationalized domain name, the server name is an IDN A-label (``"xn--pythn-mua.org"``).
A typical use of this callback is to change the :class:`ssl.SSLSocket`'s
:attr:`SSLSocket.context` attribute to a new object of type
... | the third argument is the original :class:`SSLContext`. The server name argument is text. For internationalized domain name, the server name is an IDN A-label (``"xn--pythn-mua.org"``).
A typical use of this callback is to change the :class:`ssl.SSLSocket`'s
:attr:`SSLSocket.context` attribute to a new object of type
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b895776d-26c8-4fed-95a3-ea70edb7b2a6 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,195 | supabase-export-v2 | 43d75c9030c8e58a | per ``SSLContext``. If *sni_callback* is set to ``None`` then the callback is disabled. Calling this function a subsequent time will disable the previously registered callback.
The callback function will be called with three
arguments; the first being the :class:`ssl.SSLSocket`, the second is a string
that represents... | trusted_official_docs | CPython Docs | per ``SSLContext``. If *sni_callback* is set to ``None`` then the callback is disabled. Calling this function a subsequent time will disable the previously registered callback.
The callback function will be called with three
arguments; the first being the :class:`ssl.SSLSocket`, the second is a string
that represents... | per ``SSLContext``. If *sni_callback* is set to ``None`` then the callback is disabled. Calling this function a subsequent time will disable the previously registered callback.
The callback function will be called with three
arguments; the first being the :class:`ssl.SSLSocket`, the second is a string
that represents... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b8b92aab-5cad-4ad0-8324-cabf3df0c233 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,710 | supabase-export-v2 | d539abe20e31ccad | :data:`CERT_REQUIRED` and either loads CA certificates (when at least one of *cafile*, *capath* or *cadata* is given) or uses :meth:`SSLContext.load_default_certs` to load default CA certificates.
When :attr:`~SSLContext.keylog_filename` is supported and the environment
variable :envvar:`SSLKEYLOGFILE` is set, :func:`... | trusted_official_docs | CPython Docs | :data:`CERT_REQUIRED` and either loads CA certificates (when at least one of *cafile*, *capath* or *cadata* is given) or uses :meth:`SSLContext.load_default_certs` to load default CA certificates.
When :attr:`~SSLContext.keylog_filename` is supported and the environment
variable :envvar:`SSLKEYLOGFILE` is set, :func:`... | :data:`CERT_REQUIRED` and either loads CA certificates (when at least one of *cafile*, *capath* or *cadata* is given) or uses :meth:`SSLContext.load_default_certs` to load default CA certificates.
When :attr:`~SSLContext.keylog_filename` is supported and the environment
variable :envvar:`SSLKEYLOGFILE` is set, :func:`... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b8c3c412-5e21-45e8-b7a0-58c76ad67fdc | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,079 | supabase-export-v2 | 335e45f59954c5f3 | be initiated for a TLS 1.3 connection from a server-side socket, after the initial TLS handshake and with PHA enabled on both sides, see :attr:`SSLContext.post_handshake_auth`.
The method does not perform a cert exchange immediately. The server-side
sends a CertificateRequest during the next write event and expects th... | trusted_official_docs | CPython Docs | be initiated for a TLS 1.3 connection from a server-side socket, after the initial TLS handshake and with PHA enabled on both sides, see :attr:`SSLContext.post_handshake_auth`.
The method does not perform a cert exchange immediately. The server-side
sends a CertificateRequest during the next write event and expects th... | be initiated for a TLS 1.3 connection from a server-side socket, after the initial TLS handshake and with PHA enabled on both sides, see :attr:`SSLContext.post_handshake_auth`.
The method does not perform a cert exchange immediately. The server-side
sends a CertificateRequest during the next write event and expects th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b9f34978-5023-4769-812d-1365462ebe49 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,011 | supabase-export-v2 | 806b7ca04a10e491 | As at any time a re-negotiation is possible, a call to :meth:`read` can also cause write operations.
.. versionchanged:: 3.5
The socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the maximum total duration to read up to *len*
bytes. | trusted_official_docs | CPython Docs | As at any time a re-negotiation is possible, a call to :meth:`read` can also cause write operations.
.. versionchanged:: 3.5
The socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the maximum total duration to read up to *len*
bytes. | As at any time a re-negotiation is possible, a call to :meth:`read` can also cause write operations.
.. versionchanged:: 3.5
The socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the maximum total duration to read up to *len*
bytes. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ba1fe60a-6f17-45d9-9693-247ada4e13e4 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,440 | supabase-export-v2 | 57dbfa440eb77c95 | Multi-processing ^^^^^^^^^^^^^^^^
If using this module as part of a multi-processed application (using,
for example the :mod:`multiprocessing` or :mod:`concurrent.futures` modules),
be aware that OpenSSL's internal random number generator does not properly
handle forked processes. Applications must change the PRNG stat... | trusted_official_docs | CPython Docs | Multi-processing ^^^^^^^^^^^^^^^^
If using this module as part of a multi-processed application (using,
for example the :mod:`multiprocessing` or :mod:`concurrent.futures` modules),
be aware that OpenSSL's internal random number generator does not properly
handle forked processes. Applications must change the PRNG stat... | Multi-processing ^^^^^^^^^^^^^^^^
If using this module as part of a multi-processed application (using,
for example the :mod:`multiprocessing` or :mod:`concurrent.futures` modules),
be aware that OpenSSL's internal random number generator does not properly
handle forked processes. Applications must change the PRNG stat... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bda123b9-bdb6-44b4-9cdd-1c2939d00dce | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,229 | supabase-export-v2 | ca977c964bdfe478 | .. attribute:: SSLContext.sslsocket_class
The return type of :meth:`SSLContext.wrap_socket`, defaults to
:class:`SSLSocket`. The attribute can be assigned to on instances of
:class:`SSLContext` in order to return a custom subclass of
:class:`SSLSocket`. | trusted_official_docs | CPython Docs | .. attribute:: SSLContext.sslsocket_class
The return type of :meth:`SSLContext.wrap_socket`, defaults to
:class:`SSLSocket`. The attribute can be assigned to on instances of
:class:`SSLContext` in order to return a custom subclass of
:class:`SSLSocket`. | .. attribute:: SSLContext.sslsocket_class
The return type of :meth:`SSLContext.wrap_socket`, defaults to
:class:`SSLSocket`. The attribute can be assigned to on instances of
:class:`SSLContext` in order to return a custom subclass of
:class:`SSLSocket`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
be6c5a06-3c75-47c0-96f1-ac1f26c97261 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,006 | supabase-export-v2 | e377cb4f16c1bca4 | uses ``SSL_sendfile`` internally when possible. The function sends a file more efficiently because it performs TLS encryption in the kernel to avoid additional context switches.
SSL sockets also have the following additional methods and attributes: | trusted_official_docs | CPython Docs | uses ``SSL_sendfile`` internally when possible. The function sends a file more efficiently because it performs TLS encryption in the kernel to avoid additional context switches.
SSL sockets also have the following additional methods and attributes: | uses ``SSL_sendfile`` internally when possible. The function sends a file more efficiently because it performs TLS encryption in the kernel to avoid additional context switches.
SSL sockets also have the following additional methods and attributes: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bedd1a71-d87c-4a3f-b0ec-8ee962680bad | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,031 | supabase-export-v2 | bdd689bf1f0f2c21 | certificate). If a certificate contains an instance of the *Subject Alternative Name* extension (see :rfc:`3280`), there will also be a ``subjectAltName`` key in the dictionary.
The ``subject`` and ``issuer`` fields are tuples containing the sequence
of relative distinguished names (RDNs) given in the certificate's da... | trusted_official_docs | CPython Docs | certificate). If a certificate contains an instance of the *Subject Alternative Name* extension (see :rfc:`3280`), there will also be a ``subjectAltName`` key in the dictionary.
The ``subject`` and ``issuer`` fields are tuples containing the sequence
of relative distinguished names (RDNs) given in the certificate's da... | certificate). If a certificate contains an instance of the *Subject Alternative Name* extension (see :rfc:`3280`), there will also be a ``subjectAltName`` key in the dictionary.
The ``subject`` and ``issuer`` fields are tuples containing the sequence
of relative distinguished names (RDNs) given in the certificate's da... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bf319aed-e818-4aa5-9d91-d9b81de64632 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,443 | supabase-export-v2 | 5b54614b3a94b1b2 | The TLS 1.3 protocol behaves slightly differently than previous version of TLS/SSL. Some new TLS 1.3 features are not yet available.
- TLS 1.3 uses a disjunct set of cipher suites. All AES-GCM and ChaCha20
cipher suites are enabled by default. To restrict which TLS 1.3 ciphers
are allowed, the :meth:`SSLContext.set_c... | trusted_official_docs | CPython Docs | The TLS 1.3 protocol behaves slightly differently than previous version of TLS/SSL. Some new TLS 1.3 features are not yet available.
- TLS 1.3 uses a disjunct set of cipher suites. All AES-GCM and ChaCha20
cipher suites are enabled by default. To restrict which TLS 1.3 ciphers
are allowed, the :meth:`SSLContext.set_c... | The TLS 1.3 protocol behaves slightly differently than previous version of TLS/SSL. Some new TLS 1.3 features are not yet available.
- TLS 1.3 uses a disjunct set of cipher suites. All AES-GCM and ChaCha20
cipher suites are enabled by default. To restrict which TLS 1.3 ciphers
are allowed, the :meth:`SSLContext.set_c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bfc0a3ca-bf88-44b1-9369-128637955710 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,221 | supabase-export-v2 | ce1cc3d2ddc1d43b | server to host multiple SSL-based services with distinct certificates, quite similarly to HTTP virtual hosts. Specifying *server_hostname* will raise a :exc:`ValueError` if *server_side* is true.
The parameter ``do_handshake_on_connect`` specifies whether to do the SSL
handshake automatically after doing a :meth:`sock... | trusted_official_docs | CPython Docs | server to host multiple SSL-based services with distinct certificates, quite similarly to HTTP virtual hosts. Specifying *server_hostname* will raise a :exc:`ValueError` if *server_side* is true.
The parameter ``do_handshake_on_connect`` specifies whether to do the SSL
handshake automatically after doing a :meth:`sock... | server to host multiple SSL-based services with distinct certificates, quite similarly to HTTP virtual hosts. Specifying *server_hostname* will raise a :exc:`ValueError` if *server_side* is true.
The parameter ``do_handshake_on_connect`` specifies whether to do the SSL
handshake automatically after doing a :meth:`sock... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bfead78f-2ab5-43b0-bb32-143779fd4c99 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,393 | supabase-export-v2 | 807a6baef4ba1fdd | :meth:`~SSLSocket.get_verified_chain` - :meth:`~SSLSocket.get_unverified_chain` - :meth:`~SSLSocket.selected_alpn_protocol` - :meth:`~SSLSocket.selected_npn_protocol` - :meth:`~SSLSocket.cipher` - :meth:`~SSLSocket.shared_ciphers` - :meth:`~SSLSocket.compression` - :meth:`~SSLSocket.pending` - :meth:`~SSLSocket.do_hand... | trusted_official_docs | CPython Docs | :meth:`~SSLSocket.get_verified_chain` - :meth:`~SSLSocket.get_unverified_chain` - :meth:`~SSLSocket.selected_alpn_protocol` - :meth:`~SSLSocket.selected_npn_protocol` - :meth:`~SSLSocket.cipher` - :meth:`~SSLSocket.shared_ciphers` - :meth:`~SSLSocket.compression` - :meth:`~SSLSocket.pending` - :meth:`~SSLSocket.do_hand... | :meth:`~SSLSocket.get_verified_chain` - :meth:`~SSLSocket.get_unverified_chain` - :meth:`~SSLSocket.selected_alpn_protocol` - :meth:`~SSLSocket.selected_npn_protocol` - :meth:`~SSLSocket.cipher` - :meth:`~SSLSocket.shared_ciphers` - :meth:`~SSLSocket.compression` - :meth:`~SSLSocket.pending` - :meth:`~SSLSocket.do_hand... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c0df7a03-f221-46d6-89e1-56a5a813619d | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,128 | supabase-export-v2 | fe2fe96298b39f10 | .. method:: SSLContext.load_cert_chain(certfile, keyfile=None, password=None)
Load a private key and the corresponding certificate. The *certfile*
string must be the path to a single file in PEM format containing the
certificate as well as any number of CA certificates needed to establish
the certificate's authentic... | trusted_official_docs | CPython Docs | .. method:: SSLContext.load_cert_chain(certfile, keyfile=None, password=None)
Load a private key and the corresponding certificate. The *certfile*
string must be the path to a single file in PEM format containing the
certificate as well as any number of CA certificates needed to establish
the certificate's authentic... | .. method:: SSLContext.load_cert_chain(certfile, keyfile=None, password=None)
Load a private key and the corresponding certificate. The *certfile*
string must be the path to a single file in PEM format containing the
certificate as well as any number of CA certificates needed to establish
the certificate's authentic... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c15325ed-a7a9-46a6-95ed-062f8f0ae305 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,890 | supabase-export-v2 | 679adb4f32a5dc90 | .. data:: OP_NO_TLSv1_2
Prevents a TLSv1.2 connection. This option is only applicable in conjunction
with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.2 as
the protocol version. Available only with openssl version 1.0.1+. | trusted_official_docs | CPython Docs | .. data:: OP_NO_TLSv1_2
Prevents a TLSv1.2 connection. This option is only applicable in conjunction
with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.2 as
the protocol version. Available only with openssl version 1.0.1+. | .. data:: OP_NO_TLSv1_2
Prevents a TLSv1.2 connection. This option is only applicable in conjunction
with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.2 as
the protocol version. Available only with openssl version 1.0.1+. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c19f071d-8bf3-4c79-8655-86f635ce115f | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,774 | supabase-export-v2 | b9efa2fa053021d1 | is a lower bound on the entropy contained in string (so you can always use ``0.0``). See :rfc:`1750` for more information on sources of entropy.
.. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. | trusted_official_docs | CPython Docs | is a lower bound on the entropy contained in string (so you can always use ``0.0``). See :rfc:`1750` for more information on sources of entropy.
.. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. | is a lower bound on the entropy contained in string (so you can always use ``0.0``). See :rfc:`1750` for more information on sources of entropy.
.. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c1d1fe98-6d8f-42ec-b37e-f194ebf1dc83 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,066 | supabase-export-v2 | e232c98da7856f69 | Get channel binding data for current connection, as a bytes object. Returns ``None`` if not connected or the handshake has not been completed.
The *cb_type* parameter allow selection of the desired channel binding
type. Valid channel binding types are listed in the
:data:`CHANNEL_BINDING_TYPES` list. Currently only t... | trusted_official_docs | CPython Docs | Get channel binding data for current connection, as a bytes object. Returns ``None`` if not connected or the handshake has not been completed.
The *cb_type* parameter allow selection of the desired channel binding
type. Valid channel binding types are listed in the
:data:`CHANNEL_BINDING_TYPES` list. Currently only t... | Get channel binding data for current connection, as a bytes object. Returns ``None`` if not connected or the handshake has not been completed.
The *cb_type* parameter allow selection of the desired channel binding
type. Valid channel binding types are listed in the
:data:`CHANNEL_BINDING_TYPES` list. Currently only t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c3591ddc-7ac8-4f0a-ab14-9e6df29569ae | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,018 | supabase-export-v2 | fd23ea5fb7d8fafb | socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the maximum total duration to write *data*.
.. deprecated:: 3.6
Use :meth:`~SSLSocket.send` instead of :meth:`~SSLSocket.write`. | trusted_official_docs | CPython Docs | socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the maximum total duration to write *data*.
.. deprecated:: 3.6
Use :meth:`~SSLSocket.send` instead of :meth:`~SSLSocket.write`. | socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the maximum total duration to write *data*.
.. deprecated:: 3.6
Use :meth:`~SSLSocket.send` instead of :meth:`~SSLSocket.write`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c35c86f5-e2d9-4475-aa77-a20386e1d4b9 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,712 | supabase-export-v2 | 9caf299df868dbe5 | make the underlying OpenSSL implementation behave more like a conforming implementation of :rfc:`5280`, in exchange for a small amount of incompatibility with older X.509 certificates.
.. note::
The protocol, options, cipher and other settings may change to more
restrictive values anytime without prior deprecation. T... | trusted_official_docs | CPython Docs | make the underlying OpenSSL implementation behave more like a conforming implementation of :rfc:`5280`, in exchange for a small amount of incompatibility with older X.509 certificates.
.. note::
The protocol, options, cipher and other settings may change to more
restrictive values anytime without prior deprecation. T... | make the underlying OpenSSL implementation behave more like a conforming implementation of :rfc:`5280`, in exchange for a small amount of incompatibility with older X.509 certificates.
.. note::
The protocol, options, cipher and other settings may change to more
restrictive values anytime without prior deprecation. T... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c43724dd-37ee-41d1-826e-0d32fb687009 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,808 | supabase-export-v2 | 2b5a3e097ca98ba9 | .. data:: CERT_NONE
Possible value for :attr:`SSLContext.verify_mode`. Except for :const:`PROTOCOL_TLS_CLIENT`,
it is the default mode. With client-side sockets, just about any
cert is accepted. Validation errors, such as untrusted or expired cert,
are ignored and do not abort the TLS/SSL handshake. | trusted_official_docs | CPython Docs | .. data:: CERT_NONE
Possible value for :attr:`SSLContext.verify_mode`. Except for :const:`PROTOCOL_TLS_CLIENT`,
it is the default mode. With client-side sockets, just about any
cert is accepted. Validation errors, such as untrusted or expired cert,
are ignored and do not abort the TLS/SSL handshake. | .. data:: CERT_NONE
Possible value for :attr:`SSLContext.verify_mode`. Except for :const:`PROTOCOL_TLS_CLIENT`,
it is the default mode. With client-side sockets, just about any
cert is accepted. Validation errors, such as untrusted or expired cert,
are ignored and do not abort the TLS/SSL handshake. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c573446e-f93e-4131-a0d3-2d372a51b72e | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,781 | supabase-export-v2 | e3509e3c601b4efc | datetime as dt >>> timestamp = ssl.cert_time_to_seconds("Jan 5 09:34:43 2018 GMT") >>> timestamp # doctest: +SKIP 1515144883 >>> print(dt.datetime.fromtimestamp(timestamp, dt.UTC)) # doctest: +SKIP 2018-01-05 09:34:43+00:00
"notBefore" or "notAfter" dates must use GMT (:rfc:`5280`). | trusted_official_docs | CPython Docs | datetime as dt >>> timestamp = ssl.cert_time_to_seconds("Jan 5 09:34:43 2018 GMT") >>> timestamp # doctest: +SKIP 1515144883 >>> print(dt.datetime.fromtimestamp(timestamp, dt.UTC)) # doctest: +SKIP 2018-01-05 09:34:43+00:00
"notBefore" or "notAfter" dates must use GMT (:rfc:`5280`). | datetime as dt >>> timestamp = ssl.cert_time_to_seconds("Jan 5 09:34:43 2018 GMT") >>> timestamp # doctest: +SKIP 1515144883 >>> print(dt.datetime.fromtimestamp(timestamp, dt.UTC)) # doctest: +SKIP 2018-01-05 09:34:43+00:00
"notBefore" or "notAfter" dates must use GMT (:rfc:`5280`). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c5e1d855-790d-496a-9316-d193677d6aa9 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,817 | supabase-export-v2 | 0cf2c282bebede22 | does not match hostnames. :attr:`~SSLContext.check_hostname` must be enabled as well to verify the authenticity of a cert. :const:`PROTOCOL_TLS_CLIENT` uses :const:`CERT_REQUIRED` and enables :attr:`~SSLContext.check_hostname` by default.
With server socket, this mode provides mandatory TLS client cert
authentication.... | trusted_official_docs | CPython Docs | does not match hostnames. :attr:`~SSLContext.check_hostname` must be enabled as well to verify the authenticity of a cert. :const:`PROTOCOL_TLS_CLIENT` uses :const:`CERT_REQUIRED` and enables :attr:`~SSLContext.check_hostname` by default.
With server socket, this mode provides mandatory TLS client cert
authentication.... | does not match hostnames. :attr:`~SSLContext.check_hostname` must be enabled as well to verify the authenticity of a cert. :const:`PROTOCOL_TLS_CLIENT` uses :const:`CERT_REQUIRED` and enables :attr:`~SSLContext.check_hostname` by default.
With server socket, this mode provides mandatory TLS client cert
authentication.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c75dab74-756e-4248-98eb-16399d253459 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,295 | supabase-export-v2 | 08abc86aaee04ca2 | equal to ``256`` octets when UTF-8 encoded. PSK is a :term:`bytes-like object` representing the pre-shared key. Return a zero length PSK to reject the connection.
Setting ``callback`` to :const:`None` removes any existing callback. | trusted_official_docs | CPython Docs | equal to ``256`` octets when UTF-8 encoded. PSK is a :term:`bytes-like object` representing the pre-shared key. Return a zero length PSK to reject the connection.
Setting ``callback`` to :const:`None` removes any existing callback. | equal to ``256`` octets when UTF-8 encoded. PSK is a :term:`bytes-like object` representing the pre-shared key. Return a zero length PSK to reject the connection.
Setting ``callback`` to :const:`None` removes any existing callback. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c7f7d107-bf83-4129-a6b4-a13a1ed0ea12 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,047 | supabase-export-v2 | dd7e0fa20cca0070 | .. method:: SSLSocket.cipher()
Returns a three-value tuple containing the name of the cipher being used, the
version of the SSL protocol that defines its use, and the number of secret
bits being used. If no connection has been established, returns ``None``. | trusted_official_docs | CPython Docs | .. method:: SSLSocket.cipher()
Returns a three-value tuple containing the name of the cipher being used, the
version of the SSL protocol that defines its use, and the number of secret
bits being used. If no connection has been established, returns ``None``. | .. method:: SSLSocket.cipher()
Returns a three-value tuple containing the name of the cipher being used, the
version of the SSL protocol that defines its use, and the number of secret
bits being used. If no connection has been established, returns ``None``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c86cef49-a029-4d3b-a9be-a5f8613ec45d | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,166 | supabase-export-v2 | b0cdf04fc3b45865 | names. If no cipher can be selected (because compile-time options or other configuration forbids use of all the specified ciphers), an :class:`SSLError` will be raised.
.. note::
When connected, the :meth:`SSLSocket.cipher` method of SSL sockets will
return details about the negotiated cipher. | trusted_official_docs | CPython Docs | names. If no cipher can be selected (because compile-time options or other configuration forbids use of all the specified ciphers), an :class:`SSLError` will be raised.
.. note::
When connected, the :meth:`SSLSocket.cipher` method of SSL sockets will
return details about the negotiated cipher. | names. If no cipher can be selected (because compile-time options or other configuration forbids use of all the specified ciphers), an :class:`SSLError` will be raised.
.. note::
When connected, the :meth:`SSLSocket.cipher` method of SSL sockets will
return details about the negotiated cipher. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c98c3cfa-834e-4a01-bb71-b0383c334eba | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,131 | supabase-export-v2 | 5b2256e9174a2573 | argument is not specified and a password is required, OpenSSL's built-in password prompting mechanism will be used to interactively prompt the user for a password.
An :class:`SSLError` is raised if the private key doesn't
match with the certificate. | trusted_official_docs | CPython Docs | argument is not specified and a password is required, OpenSSL's built-in password prompting mechanism will be used to interactively prompt the user for a password.
An :class:`SSLError` is raised if the private key doesn't
match with the certificate. | argument is not specified and a password is required, OpenSSL's built-in password prompting mechanism will be used to interactively prompt the user for a password.
An :class:`SSLError` is raised if the private key doesn't
match with the certificate. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ca67a9c2-a4a1-4c5a-b226-6b26e96127ea | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,336 | supabase-export-v2 | 94a2d3850a16d9cc | code) [AU]:US State or Province Name (full name) [Some-State]:MyState Locality Name (eg, city) []:Some City Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc.
Organizational Unit Name (eg, section) []:My Group
Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com
Email Addre... | trusted_official_docs | CPython Docs | code) [AU]:US State or Province Name (full name) [Some-State]:MyState Locality Name (eg, city) []:Some City Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc.
Organizational Unit Name (eg, section) []:My Group
Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com
Email Addre... | code) [AU]:US State or Province Name (full name) [Some-State]:MyState Locality Name (eg, city) []:Some City Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc.
Organizational Unit Name (eg, section) []:My Group
Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com
Email Addre... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cb045aa0-e634-455c-9159-11efe42bdcc7 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,269 | supabase-export-v2 | 6f42cd2428121682 | .. attribute:: SSLContext.post_handshake_auth
Enable TLS 1.3 post-handshake client authentication. Post-handshake auth
is disabled by default and a server can only request a TLS client
certificate during the initial handshake. When enabled, a server may
request a TLS client certificate at any time after the handshak... | trusted_official_docs | CPython Docs | .. attribute:: SSLContext.post_handshake_auth
Enable TLS 1.3 post-handshake client authentication. Post-handshake auth
is disabled by default and a server can only request a TLS client
certificate during the initial handshake. When enabled, a server may
request a TLS client certificate at any time after the handshak... | .. attribute:: SSLContext.post_handshake_auth
Enable TLS 1.3 post-handshake client authentication. Post-handshake auth
is disabled by default and a server can only request a TLS client
certificate during the initial handshake. When enabled, a server may
request a TLS client certificate at any time after the handshak... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cb3eeb5b-d94c-4667-bc66-d59509162054 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,396 | supabase-export-v2 | 7a4d8e719acd92dc | - There is no *do_handshake_on_connect* machinery. You must always manually call :meth:`~SSLSocket.do_handshake` to start the handshake.
- There is no handling of *suppress_ragged_eofs*. All end-of-file conditions
that are in violation of the protocol are reported via the
:exc:`SSLEOFError` exception. | trusted_official_docs | CPython Docs | - There is no *do_handshake_on_connect* machinery. You must always manually call :meth:`~SSLSocket.do_handshake` to start the handshake.
- There is no handling of *suppress_ragged_eofs*. All end-of-file conditions
that are in violation of the protocol are reported via the
:exc:`SSLEOFError` exception. | - There is no *do_handshake_on_connect* machinery. You must always manually call :meth:`~SSLSocket.do_handshake` to start the handshake.
- There is no handling of *suppress_ragged_eofs*. All end-of-file conditions
that are in violation of the protocol are reported via the
:exc:`SSLEOFError` exception. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cc2dd1ff-9a47-455d-b98b-3b208e6c1998 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,076 | supabase-export-v2 | 5c6f450c48fe6527 | .. method:: SSLSocket.unwrap()
Performs the SSL shutdown handshake, which removes the TLS layer from the
underlying socket, and returns the underlying socket object. This can be
used to go from encrypted operation over a connection to unencrypted. The
returned socket should always be used for further communication w... | trusted_official_docs | CPython Docs | .. method:: SSLSocket.unwrap()
Performs the SSL shutdown handshake, which removes the TLS layer from the
underlying socket, and returns the underlying socket object. This can be
used to go from encrypted operation over a connection to unencrypted. The
returned socket should always be used for further communication w... | .. method:: SSLSocket.unwrap()
Performs the SSL shutdown handshake, which removes the TLS layer from the
underlying socket, and returns the underlying socket object. This can be
used to go from encrypted operation over a connection to unencrypted. The
returned socket should always be used for further communication w... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cca6df30-7dc2-4010-b9c6-bbe5f699653c | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,684 | supabase-export-v2 | e71709a082ac512f | of the other side of the connection, :meth:`cipher`, which retrieves the cipher being used for the secure connection or :meth:`get_verified_chain`, :meth:`get_unverified_chain` which retrieves certificate chain.
For more sophisticated applications, the :class:`ssl.SSLContext` class
helps manage settings and certificate... | trusted_official_docs | CPython Docs | of the other side of the connection, :meth:`cipher`, which retrieves the cipher being used for the secure connection or :meth:`get_verified_chain`, :meth:`get_unverified_chain` which retrieves certificate chain.
For more sophisticated applications, the :class:`ssl.SSLContext` class
helps manage settings and certificate... | of the other side of the connection, :meth:`cipher`, which retrieves the cipher being used for the secure connection or :meth:`get_verified_chain`, :meth:`get_unverified_chain` which retrieves certificate chain.
For more sophisticated applications, the :class:`ssl.SSLContext` class
helps manage settings and certificate... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ccc6750e-31ef-42f5-b312-0426cb36ad37 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,380 | supabase-export-v2 | cebb342618066e76 | .. seealso::
The :mod:`asyncio` module supports :ref:`non-blocking SSL sockets
<ssl-nonblocking>` and provides a higher level :ref:`Streams API <asyncio-streams>`. It polls for events using the :mod:`selectors` module and
handles :exc:`SSLWantWriteError`, :exc:`SSLWantReadError` and
:exc:`BlockingIOError` exceptions... | trusted_official_docs | CPython Docs | .. seealso::
The :mod:`asyncio` module supports :ref:`non-blocking SSL sockets
<ssl-nonblocking>` and provides a higher level :ref:`Streams API <asyncio-streams>`. It polls for events using the :mod:`selectors` module and
handles :exc:`SSLWantWriteError`, :exc:`SSLWantReadError` and
:exc:`BlockingIOError` exceptions... | .. seealso::
The :mod:`asyncio` module supports :ref:`non-blocking SSL sockets
<ssl-nonblocking>` and provides a higher level :ref:`Streams API <asyncio-streams>`. It polls for events using the :mod:`selectors` module and
handles :exc:`SSLWantWriteError`, :exc:`SSLWantReadError` and
:exc:`BlockingIOError` exceptions... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cda3976a-0c3f-468e-8b3d-91283fae1a2b | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,193 | supabase-export-v2 | 2cee944d8c56deb6 | .. attribute:: SSLContext.sni_callback
Register a callback function that will be called after the TLS Client Hello
handshake message has been received by the SSL/TLS server when the TLS client
specifies a server name indication. The server name indication mechanism
is specified in :rfc:`6066` section 3 - Server Name... | trusted_official_docs | CPython Docs | .. attribute:: SSLContext.sni_callback
Register a callback function that will be called after the TLS Client Hello
handshake message has been received by the SSL/TLS server when the TLS client
specifies a server name indication. The server name indication mechanism
is specified in :rfc:`6066` section 3 - Server Name... | .. attribute:: SSLContext.sni_callback
Register a callback function that will be called after the TLS Client Hello
handshake message has been received by the SSL/TLS server when the TLS client
specifies a server name indication. The server name indication mechanism
is specified in :rfc:`6066` section 3 - Server Name... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cdc2acaf-70c8-4c03-99dc-381b11a6b171 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,735 | supabase-export-v2 | 72549a20b9d44456 | .. exception:: SSLError
Raised to signal an error from the underlying SSL implementation
(currently provided by the OpenSSL library). This signifies some
problem in the higher-level encryption and authentication layer that's
superimposed on the underlying network connection. This error
is a subtype of :exc:`OSError... | trusted_official_docs | CPython Docs | .. exception:: SSLError
Raised to signal an error from the underlying SSL implementation
(currently provided by the OpenSSL library). This signifies some
problem in the higher-level encryption and authentication layer that's
superimposed on the underlying network connection. This error
is a subtype of :exc:`OSError... | .. exception:: SSLError
Raised to signal an error from the underlying SSL implementation
(currently provided by the OpenSSL library). This signifies some
problem in the higher-level encryption and authentication layer that's
superimposed on the underlying network connection. This error
is a subtype of :exc:`OSError... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ced2717f-be3a-42c0-be61-eb86940bb5b6 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,367 | supabase-export-v2 | 986b6e5733470254 | data: if not do_something(connstream, data): # we'll assume do_something returns False # when we're finished with client break data = connstream.recv(1024) # finished with client
And go back to listening for new client connections (of course, a real server
would probably handle each client connection in a separate thre... | trusted_official_docs | CPython Docs | data: if not do_something(connstream, data): # we'll assume do_something returns False # when we're finished with client break data = connstream.recv(1024) # finished with client
And go back to listening for new client connections (of course, a real server
would probably handle each client connection in a separate thre... | data: if not do_something(connstream, data): # we'll assume do_something returns False # when we're finished with client break data = connstream.recv(1024) # finished with client
And go back to listening for new client connections (of course, a real server
would probably handle each client connection in a separate thre... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cf55e9b2-e202-490d-90f4-5a741f32a272 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,911 | supabase-export-v2 | 58885c6e0558ef34 | Send dummy Change Cipher Spec (CCS) messages in TLS 1.3 handshake to make a TLS 1.3 connection look more like a TLS 1.2 connection.
This option is only available with OpenSSL 1.1.1 and later. | trusted_official_docs | CPython Docs | Send dummy Change Cipher Spec (CCS) messages in TLS 1.3 handshake to make a TLS 1.3 connection look more like a TLS 1.2 connection.
This option is only available with OpenSSL 1.1.1 and later. | Send dummy Change Cipher Spec (CCS) messages in TLS 1.3 handshake to make a TLS 1.3 connection look more like a TLS 1.2 connection.
This option is only available with OpenSSL 1.1.1 and later. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cfa43e96-d805-4c9a-9615-831e95dd7663 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,072 | supabase-export-v2 | 90aac1211b432bb0 | .. method:: SSLSocket.selected_npn_protocol()
Return the higher-level protocol that was selected during the TLS/SSL
handshake. If :meth:`SSLContext.set_npn_protocols` was not called, or
if the other party does not support NPN, or if the handshake has not yet
happened, this will return ``None``. | trusted_official_docs | CPython Docs | .. method:: SSLSocket.selected_npn_protocol()
Return the higher-level protocol that was selected during the TLS/SSL
handshake. If :meth:`SSLContext.set_npn_protocols` was not called, or
if the other party does not support NPN, or if the handshake has not yet
happened, this will return ``None``. | .. method:: SSLSocket.selected_npn_protocol()
Return the higher-level protocol that was selected during the TLS/SSL
handshake. If :meth:`SSLContext.set_npn_protocols` was not called, or
if the other party does not support NPN, or if the handshake has not yet
happened, this will return ``None``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d06a692c-092b-44a1-a625-0e114de1b15d | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,402 | supabase-export-v2 | c8c696a5942fd322 | 3.7 :class:`SSLObject` instances must be created with :meth:`~SSLContext.wrap_bio`. In earlier versions, it was possible to create instances directly. This was never documented or officially supported.
An SSLObject communicates with the outside world using memory buffers. The
class :class:`MemoryBIO` provides a memory ... | trusted_official_docs | CPython Docs | 3.7 :class:`SSLObject` instances must be created with :meth:`~SSLContext.wrap_bio`. In earlier versions, it was possible to create instances directly. This was never documented or officially supported.
An SSLObject communicates with the outside world using memory buffers. The
class :class:`MemoryBIO` provides a memory ... | 3.7 :class:`SSLObject` instances must be created with :meth:`~SSLContext.wrap_bio`. In earlier versions, it was possible to create instances directly. This was never documented or officially supported.
An SSLObject communicates with the outside world using memory buffers. The
class :class:`MemoryBIO` provides a memory ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d07d8c68-0faf-4ce1-9cea-a1b6bb4525b7 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,782 | supabase-export-v2 | d737c526b182da19 | "notBefore" or "notAfter" dates must use GMT (:rfc:`5280`).
.. versionchanged:: 3.5
Interpret the input time as a time in UTC as specified by 'GMT'
timezone in the input string. Local timezone was used
previously. Return an integer (no fractions of a second in the
input format) | trusted_official_docs | CPython Docs | "notBefore" or "notAfter" dates must use GMT (:rfc:`5280`).
.. versionchanged:: 3.5
Interpret the input time as a time in UTC as specified by 'GMT'
timezone in the input string. Local timezone was used
previously. Return an integer (no fractions of a second in the
input format) | "notBefore" or "notAfter" dates must use GMT (:rfc:`5280`).
.. versionchanged:: 3.5
Interpret the input time as a time in UTC as specified by 'GMT'
timezone in the input string. Local timezone was used
previously. Return an integer (no fractions of a second in the
input format) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d0e349a9-d7f3-42dd-b818-f93cc803848e | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,027 | supabase-export-v2 | 393e8efab1d366b9 | socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the maximum total duration of the handshake.
.. versionchanged:: 3.7
Hostname or IP address is matched by OpenSSL during handshake. The
function :func:`!match_hostname` is no longer used. In case OpenSSL
refuses a hostn... | trusted_official_docs | CPython Docs | socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the maximum total duration of the handshake.
.. versionchanged:: 3.7
Hostname or IP address is matched by OpenSSL during handshake. The
function :func:`!match_hostname` is no longer used. In case OpenSSL
refuses a hostn... | socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the maximum total duration of the handshake.
.. versionchanged:: 3.7
Hostname or IP address is matched by OpenSSL during handshake. The
function :func:`!match_hostname` is no longer used. In case OpenSSL
refuses a hostn... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d0f84241-ff9b-4a2f-bae0-f488db0e0dbf | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,135 | supabase-export-v2 | 94e296def04b64b4 | the ``CA`` and ``ROOT`` system stores. On all systems it calls :meth:`SSLContext.set_default_verify_paths`. In the future the method may load CA certificates from other locations, too.
The *purpose* flag specifies what kind of CA certificates are loaded. The
default settings :const:`Purpose.SERVER_AUTH` loads certific... | trusted_official_docs | CPython Docs | the ``CA`` and ``ROOT`` system stores. On all systems it calls :meth:`SSLContext.set_default_verify_paths`. In the future the method may load CA certificates from other locations, too.
The *purpose* flag specifies what kind of CA certificates are loaded. The
default settings :const:`Purpose.SERVER_AUTH` loads certific... | the ``CA`` and ``ROOT`` system stores. On all systems it calls :meth:`SSLContext.set_default_verify_paths`. In the future the method may load CA certificates from other locations, too.
The *purpose* flag specifies what kind of CA certificates are loaded. The
default settings :const:`Purpose.SERVER_AUTH` loads certific... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d1deea7f-1c31-4d46-b55d-6b055ce1a7ec | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,222 | supabase-export-v2 | 2903f9d28a763ca0 | explicitly, by invoking the :meth:`SSLSocket.do_handshake` method. Calling :meth:`SSLSocket.do_handshake` explicitly gives the program control over the blocking behavior of the socket I/O involved in the handshake.
The parameter ``suppress_ragged_eofs`` specifies how the
:meth:`SSLSocket.recv` method should signal une... | trusted_official_docs | CPython Docs | explicitly, by invoking the :meth:`SSLSocket.do_handshake` method. Calling :meth:`SSLSocket.do_handshake` explicitly gives the program control over the blocking behavior of the socket I/O involved in the handshake.
The parameter ``suppress_ragged_eofs`` specifies how the
:meth:`SSLSocket.recv` method should signal une... | explicitly, by invoking the :meth:`SSLSocket.do_handshake` method. Calling :meth:`SSLSocket.do_handshake` explicitly gives the program control over the blocking behavior of the socket I/O involved in the handshake.
The parameter ``suppress_ragged_eofs`` specifies how the
:meth:`SSLSocket.recv` method should signal une... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d2c3f3ba-791e-482e-8839-d3229724179b | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,124 | supabase-export-v2 | a3afcbae9d15b99b | Get statistics about quantities of loaded X.509 certificates, count of X.509 certificates flagged as CA certificates and certificate revocation lists as dictionary.
Example for a context with one CA cert and one other cert:: | trusted_official_docs | CPython Docs | Get statistics about quantities of loaded X.509 certificates, count of X.509 certificates flagged as CA certificates and certificate revocation lists as dictionary.
Example for a context with one CA cert and one other cert:: | Get statistics about quantities of loaded X.509 certificates, count of X.509 certificates flagged as CA certificates and certificate revocation lists as dictionary.
Example for a context with one CA cert and one other cert:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d6492d36-ff65-4dea-bd97-59a29d2e4352 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,767 | supabase-export-v2 | f3b751c9c125dbb4 | .. function:: RAND_bytes(num, /)
Return *num* cryptographically strong pseudo-random bytes. Raises an
:class:`SSLError` if the PRNG has not been seeded with enough data or if the
operation is not supported by the current RAND method. :func:`RAND_status`
can be used to check the status of the PRNG and :func:`RAND_add... | trusted_official_docs | CPython Docs | .. function:: RAND_bytes(num, /)
Return *num* cryptographically strong pseudo-random bytes. Raises an
:class:`SSLError` if the PRNG has not been seeded with enough data or if the
operation is not supported by the current RAND method. :func:`RAND_status`
can be used to check the status of the PRNG and :func:`RAND_add... | .. function:: RAND_bytes(num, /)
Return *num* cryptographically strong pseudo-random bytes. Raises an
:class:`SSLError` if the PRNG has not been seeded with enough data or if the
operation is not supported by the current RAND method. :func:`RAND_status`
can be used to check the status of the PRNG and :func:`RAND_add... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d699b5fb-ee08-4365-8438-09ef5710c891 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,793 | supabase-export-v2 | 6eac5efc49c0d4ed | .. function:: get_default_verify_paths()
Returns a named tuple with paths to OpenSSL's default cafile and capath. The paths are the same as used by
:meth:`SSLContext.set_default_verify_paths`. The return value is a
:term:`named tuple` ``DefaultVerifyPaths``: | trusted_official_docs | CPython Docs | .. function:: get_default_verify_paths()
Returns a named tuple with paths to OpenSSL's default cafile and capath. The paths are the same as used by
:meth:`SSLContext.set_default_verify_paths`. The return value is a
:term:`named tuple` ``DefaultVerifyPaths``: | .. function:: get_default_verify_paths()
Returns a named tuple with paths to OpenSSL's default cafile and capath. The paths are the same as used by
:meth:`SSLContext.set_default_verify_paths`. The return value is a
:term:`named tuple` ``DefaultVerifyPaths``: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d7162fcd-f07d-4003-a5f3-3566d0735728 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,097 | supabase-export-v2 | 3e3f96857e259039 | .. versionadded:: 3.2
.. versionchanged:: 3.7
The attribute is now always ASCII text. When ``server_hostname`` is
an internationalized domain name (IDN), this attribute now stores the
A-label form (``"xn--pythn-mua.org"``), rather than the U-label form
(``"pythön.org"``). | trusted_official_docs | CPython Docs | .. versionadded:: 3.2
.. versionchanged:: 3.7
The attribute is now always ASCII text. When ``server_hostname`` is
an internationalized domain name (IDN), this attribute now stores the
A-label form (``"xn--pythn-mua.org"``), rather than the U-label form
(``"pythön.org"``). | .. versionadded:: 3.2
.. versionchanged:: 3.7
The attribute is now always ASCII text. When ``server_hostname`` is
an internationalized domain name (IDN), this attribute now stores the
A-label form (``"xn--pythn-mua.org"``), rather than the U-label form
(``"pythön.org"``). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d7625524-2804-4e8b-b8b2-d07aec7c0ca3 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,694 | supabase-export-v2 | e05172c95e5b9686 | Instances of :class:`SSLSocket` must be created using the :meth:`SSLContext.wrap_socket` method. The helper function :func:`create_default_context` returns a new context with secure default settings.
Client socket example with default context and IPv4/IPv6 dual stack:: | trusted_official_docs | CPython Docs | Instances of :class:`SSLSocket` must be created using the :meth:`SSLContext.wrap_socket` method. The helper function :func:`create_default_context` returns a new context with secure default settings.
Client socket example with default context and IPv4/IPv6 dual stack:: | Instances of :class:`SSLSocket` must be created using the :meth:`SSLContext.wrap_socket` method. The helper function :func:`create_default_context` returns a new context with secure default settings.
Client socket example with default context and IPv4/IPv6 dual stack:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d7a4e5e6-16ba-4da9-89d1-04be68bbe25f | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,716 | supabase-export-v2 | d551ee8332ce2a9f | ctx = ssl.create_default_context(Purpose.CLIENT_AUTH) ctx.options &= ~ssl.OP_NO_SSLv3
.. note::
This context enables :data:`VERIFY_X509_STRICT` by default, which
may reject pre-:rfc:`5280` or malformed certificates that the
underlying OpenSSL implementation otherwise would accept. While disabling
this is not recomm... | trusted_official_docs | CPython Docs | ctx = ssl.create_default_context(Purpose.CLIENT_AUTH) ctx.options &= ~ssl.OP_NO_SSLv3
.. note::
This context enables :data:`VERIFY_X509_STRICT` by default, which
may reject pre-:rfc:`5280` or malformed certificates that the
underlying OpenSSL implementation otherwise would accept. While disabling
this is not recomm... | ctx = ssl.create_default_context(Purpose.CLIENT_AUTH) ctx.options &= ~ssl.OP_NO_SSLv3
.. note::
This context enables :data:`VERIFY_X509_STRICT` by default, which
may reject pre-:rfc:`5280` or malformed certificates that the
underlying OpenSSL implementation otherwise would accept. While disabling
this is not recomm... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d88048d8-617d-4c56-b313-d4ba40ad5e3d | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,886 | supabase-export-v2 | fb3960652f1a3f37 | .. data:: OP_NO_TLSv1_1
Prevents a TLSv1.1 connection. This option is only applicable in conjunction
with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.1 as
the protocol version. Available only with openssl version 1.0.1+. | trusted_official_docs | CPython Docs | .. data:: OP_NO_TLSv1_1
Prevents a TLSv1.1 connection. This option is only applicable in conjunction
with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.1 as
the protocol version. Available only with openssl version 1.0.1+. | .. data:: OP_NO_TLSv1_1
Prevents a TLSv1.1 connection. This option is only applicable in conjunction
with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.1 as
the protocol version. Available only with openssl version 1.0.1+. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d973e3d3-3511-4105-9a6e-b814880b04c9 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,998 | supabase-export-v2 | 78b39aabe4e30438 | be high-performant only when the kernel TLS is enabled by setting :data:`~ssl.OP_ENABLE_KTLS` or when a socket is plain-text, else :meth:`~socket.socket.send` will be used) - :meth:`~socket.socket.shutdown`
However, since the SSL (and TLS) protocol has its own framing atop
of TCP, the SSL sockets abstraction can, in c... | trusted_official_docs | CPython Docs | be high-performant only when the kernel TLS is enabled by setting :data:`~ssl.OP_ENABLE_KTLS` or when a socket is plain-text, else :meth:`~socket.socket.send` will be used) - :meth:`~socket.socket.shutdown`
However, since the SSL (and TLS) protocol has its own framing atop
of TCP, the SSL sockets abstraction can, in c... | be high-performant only when the kernel TLS is enabled by setting :data:`~ssl.OP_ENABLE_KTLS` or when a socket is plain-text, else :meth:`~socket.socket.send` will be used) - :meth:`~socket.socket.shutdown`
However, since the SSL (and TLS) protocol has its own framing atop
of TCP, the SSL sockets abstraction can, in c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
da1163d8-17f7-4cfc-abc1-f8c5c13d5a3a | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,301 | supabase-export-v2 | 2d39ec33091ed596 | # A simple lambda: psk = bytes.fromhex('c0ffee') context.set_psk_client_callback(lambda hint: (None, psk))
# A table using the hint from the server:
psk_table = { 'ServerId_1': bytes.fromhex('c0ffee'),
'ServerId_2': bytes.fromhex('facade')
}
def callback(hint):
return 'ClientId_1', psk_table.get(hint, b'')
contex... | trusted_official_docs | CPython Docs | # A simple lambda: psk = bytes.fromhex('c0ffee') context.set_psk_client_callback(lambda hint: (None, psk))
# A table using the hint from the server:
psk_table = { 'ServerId_1': bytes.fromhex('c0ffee'),
'ServerId_2': bytes.fromhex('facade')
}
def callback(hint):
return 'ClientId_1', psk_table.get(hint, b'')
contex... | # A simple lambda: psk = bytes.fromhex('c0ffee') context.set_psk_client_callback(lambda hint: (None, psk))
# A table using the hint from the server:
psk_table = { 'ServerId_1': bytes.fromhex('c0ffee'),
'ServerId_2': bytes.fromhex('facade')
}
def callback(hint):
return 'ClientId_1', psk_table.get(hint, b'')
contex... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dae2e37c-48dc-41d5-9df6-abf0289b9570 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,683 | supabase-export-v2 | 6f868b251c117278 | module; for more general information about TLS, SSL, and certificates, the reader is referred to the documents in the "See Also" section at the bottom.
This module provides a class, :class:`ssl.SSLSocket`, which is derived from the
:class:`socket.socket` type, and provides a socket-like wrapper that also
encrypts and d... | trusted_official_docs | CPython Docs | module; for more general information about TLS, SSL, and certificates, the reader is referred to the documents in the "See Also" section at the bottom.
This module provides a class, :class:`ssl.SSLSocket`, which is derived from the
:class:`socket.socket` type, and provides a socket-like wrapper that also
encrypts and d... | module; for more general information about TLS, SSL, and certificates, the reader is referred to the documents in the "See Also" section at the bottom.
This module provides a class, :class:`ssl.SSLSocket`, which is derived from the
:class:`socket.socket` type, and provides a socket-like wrapper that also
encrypts and d... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dbdcf17d-3a67-43be-91ea-2c9eec3d315f | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,717 | supabase-export-v2 | 5f1b7bb7884b475d | may reject pre-:rfc:`5280` or malformed certificates that the underlying OpenSSL implementation otherwise would accept. While disabling this is not recommended, you can do so using::
ctx = ssl.create_default_context()
ctx.verify_flags &= ~ssl.VERIFY_X509_STRICT | trusted_official_docs | CPython Docs | may reject pre-:rfc:`5280` or malformed certificates that the underlying OpenSSL implementation otherwise would accept. While disabling this is not recommended, you can do so using::
ctx = ssl.create_default_context()
ctx.verify_flags &= ~ssl.VERIFY_X509_STRICT | may reject pre-:rfc:`5280` or malformed certificates that the underlying OpenSSL implementation otherwise would accept. While disabling this is not recommended, you can do so using::
ctx = ssl.create_default_context()
ctx.verify_flags &= ~ssl.VERIFY_X509_STRICT | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dc2d979b-d7bd-4c6c-a363-7ae92fe1fb36 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,039 | supabase-export-v2 | 50ee2255562a2202 | versionchanged:: 3.4 :exc:`ValueError` is raised when the handshake isn't done. The returned dictionary includes additional X509v3 extension items such as ``crlDistributionPoints``, ``caIssuers`` and ``OCSP`` URIs.
.. versionchanged:: 3.9
IPv6 address strings no longer have a trailing new line. | trusted_official_docs | CPython Docs | versionchanged:: 3.4 :exc:`ValueError` is raised when the handshake isn't done. The returned dictionary includes additional X509v3 extension items such as ``crlDistributionPoints``, ``caIssuers`` and ``OCSP`` URIs.
.. versionchanged:: 3.9
IPv6 address strings no longer have a trailing new line. | versionchanged:: 3.4 :exc:`ValueError` is raised when the handshake isn't done. The returned dictionary includes additional X509v3 extension items such as ``crlDistributionPoints``, ``caIssuers`` and ``OCSP`` URIs.
.. versionchanged:: 3.9
IPv6 address strings no longer have a trailing new line. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dc411d8d-c194-48cd-8ae4-46a713d9acec | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,337 | supabase-export-v2 | 11ae167fd9bb64c6 | Organizational Unit Name (eg, section) []:My Group Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com Email Address []:ops@myserver.mygroup.myorganization.com %
The disadvantage of a self-signed certificate is that it is its own root
certificate, and no one else will have it in their cache of known (and... | trusted_official_docs | CPython Docs | Organizational Unit Name (eg, section) []:My Group Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com Email Address []:ops@myserver.mygroup.myorganization.com %
The disadvantage of a self-signed certificate is that it is its own root
certificate, and no one else will have it in their cache of known (and... | Organizational Unit Name (eg, section) []:My Group Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com Email Address []:ops@myserver.mygroup.myorganization.com %
The disadvantage of a self-signed certificate is that it is its own root
certificate, and no one else will have it in their cache of known (and... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dc89e3e0-d985-4793-8ef1-dd10d682f5ab | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,389 | supabase-export-v2 | 7acd09b6355ed042 | not contain any network IO methods. This class is typically used by framework authors that want to implement asynchronous IO for SSL through memory buffers.
This class implements an interface on top of a low-level SSL object as
implemented by OpenSSL. This object captures the state of an SSL connection
but does not p... | trusted_official_docs | CPython Docs | not contain any network IO methods. This class is typically used by framework authors that want to implement asynchronous IO for SSL through memory buffers.
This class implements an interface on top of a low-level SSL object as
implemented by OpenSSL. This object captures the state of an SSL connection
but does not p... | not contain any network IO methods. This class is typically used by framework authors that want to implement asynchronous IO for SSL through memory buffers.
This class implements an interface on top of a low-level SSL object as
implemented by OpenSSL. This object captures the state of an SSL connection
but does not p... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dd6c042d-78fe-4b6a-af59-3758afcfd71e | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,211 | supabase-export-v2 | 007890c3f6974255 | .. method:: SSLContext.set_ecdh_curve(curve_name, /)
Set the curve name for Elliptic Curve-based Diffie-Hellman (ECDH) key
exchange. ECDH is significantly faster than regular DH while arguably
as secure. The *curve_name* parameter should be a string describing
a well-known elliptic curve, for example ``prime256v1`` ... | trusted_official_docs | CPython Docs | .. method:: SSLContext.set_ecdh_curve(curve_name, /)
Set the curve name for Elliptic Curve-based Diffie-Hellman (ECDH) key
exchange. ECDH is significantly faster than regular DH while arguably
as secure. The *curve_name* parameter should be a string describing
a well-known elliptic curve, for example ``prime256v1`` ... | .. method:: SSLContext.set_ecdh_curve(curve_name, /)
Set the curve name for Elliptic Curve-based Diffie-Hellman (ECDH) key
exchange. ECDH is significantly faster than regular DH while arguably
as secure. The *curve_name* parameter should be a string describing
a well-known elliptic curve, for example ``prime256v1`` ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
de41c759-2549-41fb-9a05-5a0ffa4183b7 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,386 | supabase-export-v2 | cd8bdbb69daad015 | SSL socket to be used as a drop-in replacement for a regular socket, making it very easy to add SSL support to an existing application.
Combining SSL protocol handling and network IO usually works well, but there
are some cases where it doesn't. An example is async IO frameworks that want to
use a different IO multiple... | trusted_official_docs | CPython Docs | SSL socket to be used as a drop-in replacement for a regular socket, making it very easy to add SSL support to an existing application.
Combining SSL protocol handling and network IO usually works well, but there
are some cases where it doesn't. An example is async IO frameworks that want to
use a different IO multiple... | SSL socket to be used as a drop-in replacement for a regular socket, making it very easy to add SSL support to an existing application.
Combining SSL protocol handling and network IO usually works well, but there
are some cases where it doesn't. An example is async IO frameworks that want to
use a different IO multiple... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
df515e19-c8bb-47c0-8081-486734f8f25c | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,374 | supabase-export-v2 | b5849f8864734fc1 | In earlier Python versions, the :meth:`!SSLSocket.send` method returned zero instead of raising :exc:`SSLWantWriteError` or :exc:`SSLWantReadError`.
- Calling :func:`~select.select` tells you that the OS-level socket can be
read from (or written to), but it does not imply that there is sufficient
data at the upper SS... | trusted_official_docs | CPython Docs | In earlier Python versions, the :meth:`!SSLSocket.send` method returned zero instead of raising :exc:`SSLWantWriteError` or :exc:`SSLWantReadError`.
- Calling :func:`~select.select` tells you that the OS-level socket can be
read from (or written to), but it does not imply that there is sufficient
data at the upper SS... | In earlier Python versions, the :meth:`!SSLSocket.send` method returned zero instead of raising :exc:`SSLWantWriteError` or :exc:`SSLWantReadError`.
- Calling :func:`~select.select` tells you that the OS-level socket can be
read from (or written to), but it does not imply that there is sufficient
data at the upper SS... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dfdbaab2-d380-4991-b7a2-fcfe74c55c3e | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,198 | supabase-export-v2 | abcc4a75e6bad265 | require that the TLS connection has progressed beyond the TLS Client Hello and therefore will not return meaningful values nor can they be called safely.
The *sni_callback* function must return ``None`` to allow the
TLS negotiation to continue. If a TLS failure is required, a constant
:const:`ALERT_DESCRIPTION_* <ALE... | trusted_official_docs | CPython Docs | require that the TLS connection has progressed beyond the TLS Client Hello and therefore will not return meaningful values nor can they be called safely.
The *sni_callback* function must return ``None`` to allow the
TLS negotiation to continue. If a TLS failure is required, a constant
:const:`ALERT_DESCRIPTION_* <ALE... | require that the TLS connection has progressed beyond the TLS Client Hello and therefore will not return meaningful values nor can they be called safely.
The *sni_callback* function must return ``None`` to allow the
TLS negotiation to continue. If a TLS failure is required, a constant
:const:`ALERT_DESCRIPTION_* <ALE... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e0fb4af5-f154-4f1f-a83b-933e648b261a | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,002 | supabase-export-v2 | 96d9513cd753734c | does not reset the socket timeout each time bytes are received or sent. The socket timeout is now the maximum total duration of the shutdown.
.. deprecated:: 3.6
It is deprecated to create a :class:`SSLSocket` instance directly, use
:meth:`SSLContext.wrap_socket` to wrap a socket. | trusted_official_docs | CPython Docs | does not reset the socket timeout each time bytes are received or sent. The socket timeout is now the maximum total duration of the shutdown.
.. deprecated:: 3.6
It is deprecated to create a :class:`SSLSocket` instance directly, use
:meth:`SSLContext.wrap_socket` to wrap a socket. | does not reset the socket timeout each time bytes are received or sent. The socket timeout is now the maximum total duration of the shutdown.
.. deprecated:: 3.6
It is deprecated to create a :class:`SSLSocket` instance directly, use
:meth:`SSLContext.wrap_socket` to wrap a socket. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e17ebd2f-ddcf-4865-b966-c5057bac8786 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,207 | supabase-export-v2 | e7f390a3ab71bd47 | .. method:: SSLContext.load_dh_params(dhfile, /)
Load the key generation parameters for Diffie-Hellman (DH) key exchange. Using DH key exchange improves forward secrecy at the expense of
computational resources (both on the server and on the client). The *dhfile* parameter should be the path to a file containing DH
p... | trusted_official_docs | CPython Docs | .. method:: SSLContext.load_dh_params(dhfile, /)
Load the key generation parameters for Diffie-Hellman (DH) key exchange. Using DH key exchange improves forward secrecy at the expense of
computational resources (both on the server and on the client). The *dhfile* parameter should be the path to a file containing DH
p... | .. method:: SSLContext.load_dh_params(dhfile, /)
Load the key generation parameters for Diffie-Hellman (DH) key exchange. Using DH key exchange improves forward secrecy at the expense of
computational resources (both on the server and on the client). The *dhfile* parameter should be the path to a file containing DH
p... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e28c9165-c9a4-43c5-8120-260b2faa6766 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 32,999 | supabase-export-v2 | a3f50bca7ecec523 | TCP, the SSL sockets abstraction can, in certain respects, diverge from the specification of normal, OS-level sockets. See especially the :ref:`notes on non-blocking sockets <ssl-nonblocking>`.
Instances of :class:`SSLSocket` must be created using the
:meth:`SSLContext.wrap_socket` method. | trusted_official_docs | CPython Docs | TCP, the SSL sockets abstraction can, in certain respects, diverge from the specification of normal, OS-level sockets. See especially the :ref:`notes on non-blocking sockets <ssl-nonblocking>`.
Instances of :class:`SSLSocket` must be created using the
:meth:`SSLContext.wrap_socket` method. | TCP, the SSL sockets abstraction can, in certain respects, diverge from the specification of normal, OS-level sockets. See especially the :ref:`notes on non-blocking sockets <ssl-nonblocking>`.
Instances of :class:`SSLSocket` must be created using the
:meth:`SSLContext.wrap_socket` method. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e41eac6a-061b-4b4e-bdb5-1df477ad4a9f | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,217 | supabase-export-v2 | f96cd30478712c02 | .. method:: SSLContext.wrap_socket(sock, server_side=False, \ do_handshake_on_connect=True, suppress_ragged_eofs=True, \ server_hostname=None, session=None)
Wrap an existing Python socket *sock* and return an instance of
:attr:`SSLContext.sslsocket_class` (default :class:`SSLSocket`). The
returned SSL socket is tied ... | trusted_official_docs | CPython Docs | .. method:: SSLContext.wrap_socket(sock, server_side=False, \ do_handshake_on_connect=True, suppress_ragged_eofs=True, \ server_hostname=None, session=None)
Wrap an existing Python socket *sock* and return an instance of
:attr:`SSLContext.sslsocket_class` (default :class:`SSLSocket`). The
returned SSL socket is tied ... | .. method:: SSLContext.wrap_socket(sock, server_side=False, \ do_handshake_on_connect=True, suppress_ragged_eofs=True, \ server_hostname=None, session=None)
Wrap an existing Python socket *sock* and return an instance of
:attr:`SSLContext.sslsocket_class` (default :class:`SSLSocket`). The
returned SSL socket is tied ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e47a51c0-cbdd-4671-975a-a4ac80bf9608 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,430 | supabase-export-v2 | 588697df23dba26a | desired service. For many protocols and applications, the service can be identified by the hostname. This common check is automatically performed when :attr:`SSLContext.check_hostname` is enabled.
.. versionchanged:: 3.7
Hostname matchings is now performed by OpenSSL. Python no longer uses
:func:`!match_hostname`. | trusted_official_docs | CPython Docs | desired service. For many protocols and applications, the service can be identified by the hostname. This common check is automatically performed when :attr:`SSLContext.check_hostname` is enabled.
.. versionchanged:: 3.7
Hostname matchings is now performed by OpenSSL. Python no longer uses
:func:`!match_hostname`. | desired service. For many protocols and applications, the service can be identified by the hostname. This common check is automatically performed when :attr:`SSLContext.check_hostname` is enabled.
.. versionchanged:: 3.7
Hostname matchings is now performed by OpenSSL. Python no longer uses
:func:`!match_hostname`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e49d24bf-f165-4226-923f-d408c1a9211a | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,038 | supabase-export-v2 | 5d5d725b16b1bfd3 | .. versionchanged:: 3.2 The returned dictionary includes additional items such as ``issuer`` and ``notBefore``.
.. versionchanged:: 3.4
:exc:`ValueError` is raised when the handshake isn't done. The returned dictionary includes additional X509v3 extension items
such as ``crlDistributionPoints``, ``caIssuers`` and ``O... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.2 The returned dictionary includes additional items such as ``issuer`` and ``notBefore``.
.. versionchanged:: 3.4
:exc:`ValueError` is raised when the handshake isn't done. The returned dictionary includes additional X509v3 extension items
such as ``crlDistributionPoints``, ``caIssuers`` and ``O... | .. versionchanged:: 3.2 The returned dictionary includes additional items such as ``issuer`` and ``notBefore``.
.. versionchanged:: 3.4
:exc:`ValueError` is raised when the handshake isn't done. The returned dictionary includes additional X509v3 extension items
such as ``crlDistributionPoints``, ``caIssuers`` and ``O... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e6061e1e-c750-497c-a923-9676ba80aa56 | CPython Docs | file://datasets/cpython/Doc/library/ssl.rst | unknown | 07d79692-13ee-4262-a503-2686ca28e16e | 33,377 | supabase-export-v2 | 5e74df5fa0720f7a | (of course, similar provisions apply when using other primitives such as :func:`~select.poll`, or those in the :mod:`selectors` module)
- The SSL handshake itself will be non-blocking: the
:meth:`SSLSocket.do_handshake` method has to be retried until it returns
successfully. Here is a synopsis using :func:`~select.se... | trusted_official_docs | CPython Docs | (of course, similar provisions apply when using other primitives such as :func:`~select.poll`, or those in the :mod:`selectors` module)
- The SSL handshake itself will be non-blocking: the
:meth:`SSLSocket.do_handshake` method has to be retried until it returns
successfully. Here is a synopsis using :func:`~select.se... | (of course, similar provisions apply when using other primitives such as :func:`~select.poll`, or those in the :mod:`selectors` module)
- The SSL handshake itself will be non-blocking: the
:meth:`SSLSocket.do_handshake` method has to be retried until it returns
successfully. Here is a synopsis using :func:`~select.se... | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.