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
387e55e3-7a74-4683-af32-42a873e57c54
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,015
supabase-export-v2
0c24e475bca7c52e
Write *data* to the SSL socket and return the number of bytes written. The *data* argument must be an object supporting the buffer interface. Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is :ref:`non-blocking <ssl-nonblocking>` and the write would block.
trusted_official_docs
CPython Docs
Write *data* to the SSL socket and return the number of bytes written. The *data* argument must be an object supporting the buffer interface. Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is :ref:`non-blocking <ssl-nonblocking>` and the write would block.
Write *data* to the SSL socket and return the number of bytes written. The *data* argument must be an object supporting the buffer interface. Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is :ref:`non-blocking <ssl-nonblocking>` and the write would block.
python, official-docs, cpython, P0
Local_Trusted_Corpus
38c82790-9c77-4177-a42b-3731016a2802
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,294
supabase-export-v2
7d8a29fa8f4b6b00
In general, certificate based authentication should be preferred over this method. The parameter ``callback`` is a callable object with the signature: ``def callback(hint: str | None) -> tuple[str | None, bytes]``. The ``hint`` parameter is an optional identity hint sent by the server. The return value is a tuple in t...
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(hint: str | None) -> tuple[str | None, bytes]``. The ``hint`` parameter is an optional identity hint sent by the server. The return value is a tuple in t...
In general, certificate based authentication should be preferred over this method. The parameter ``callback`` is a callable object with the signature: ``def callback(hint: str | None) -> tuple[str | None, bytes]``. The ``hint`` parameter is an optional identity hint sent by the server. The return value is a tuple in t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
38f79b6f-b4da-42f3-b0ed-9675029028f1
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,413
supabase-export-v2
98c7f6430fb6e470
Write the bytes from *buf* to the memory BIO. The *buf* argument must be an object supporting the buffer protocol. The return value is the number of bytes written, which is always equal to the length of *buf*.
trusted_official_docs
CPython Docs
Write the bytes from *buf* to the memory BIO. The *buf* argument must be an object supporting the buffer protocol. The return value is the number of bytes written, which is always equal to the length of *buf*.
Write the bytes from *buf* to the memory BIO. The *buf* argument must be an object supporting the buffer protocol. The return value is the number of bytes written, which is always equal to the length of *buf*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
391118ce-fd1d-4cf1-84d1-98ba1e052f03
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,140
supabase-export-v2
1af7cc0ccbc21fd5
method can also load certification revocation lists (CRLs) in PEM or DER format. In order to make use of CRLs, :attr:`SSLContext.verify_flags` must be configured properly. The *cafile* string, if present, is the path to a file of concatenated CA certificates in PEM format. See the discussion of :ref:`ssl-certificates...
trusted_official_docs
CPython Docs
method can also load certification revocation lists (CRLs) in PEM or DER format. In order to make use of CRLs, :attr:`SSLContext.verify_flags` must be configured properly. The *cafile* string, if present, is the path to a file of concatenated CA certificates in PEM format. See the discussion of :ref:`ssl-certificates...
method can also load certification revocation lists (CRLs) in PEM or DER format. In order to make use of CRLs, :attr:`SSLContext.verify_flags` must be configured properly. The *cafile* string, if present, is the path to a file of concatenated CA certificates in PEM format. See the discussion of :ref:`ssl-certificates...
python, official-docs, cpython, P0
Local_Trusted_Corpus
394761da-bba6-42ae-8743-d48e3f80baf6
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,685
supabase-export-v2
ed46ab1db258860e
For more sophisticated applications, the :class:`ssl.SSLContext` class helps manage settings and certificates, which can then be inherited by SSL sockets created through the :meth:`SSLContext.wrap_socket` method. .. versionchanged:: 3.5.3 Updated to support linking with OpenSSL 1.1.0
trusted_official_docs
CPython Docs
For more sophisticated applications, the :class:`ssl.SSLContext` class helps manage settings and certificates, which can then be inherited by SSL sockets created through the :meth:`SSLContext.wrap_socket` method. .. versionchanged:: 3.5.3 Updated to support linking with OpenSSL 1.1.0
For more sophisticated applications, the :class:`ssl.SSLContext` class helps manage settings and certificates, which can then be inherited by SSL sockets created through the :meth:`SSLContext.wrap_socket` method. .. versionchanged:: 3.5.3 Updated to support linking with OpenSSL 1.1.0
python, official-docs, cpython, P0
Local_Trusted_Corpus
39f1d5e0-a186-4ba5-891c-61298b973cd6
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,350
supabase-export-v2
b30c07c8caf26886
certificate was signed with one of the CA certificates, checks the signature for correctness, and verifies other properties like validity and identity of the hostname:: >>> conn = context.wrap_socket(socket.socket(socket.AF_INET), ... server_hostname="www.python.org") >>> conn.connect(("www.python.org", 443))
trusted_official_docs
CPython Docs
certificate was signed with one of the CA certificates, checks the signature for correctness, and verifies other properties like validity and identity of the hostname:: >>> conn = context.wrap_socket(socket.socket(socket.AF_INET), ... server_hostname="www.python.org") >>> conn.connect(("www.python.org", 443))
certificate was signed with one of the CA certificates, checks the signature for correctness, and verifies other properties like validity and identity of the hostname:: >>> conn = context.wrap_socket(socket.socket(socket.AF_INET), ... server_hostname="www.python.org") >>> conn.connect(("www.python.org", 443))
python, official-docs, cpython, P0
Local_Trusted_Corpus
3b916571-c62f-4d63-bff7-6f2b820ba1ec
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,450
supabase-export-v2
71e6752889727b6d
:rfc:`RFC 4086: Randomness Requirements for Security <4086>` Donald E. Eastlake, Jeffrey I. Schiller, Steve Crocker :rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile <5280>` David Cooper et al.
trusted_official_docs
CPython Docs
:rfc:`RFC 4086: Randomness Requirements for Security <4086>` Donald E. Eastlake, Jeffrey I. Schiller, Steve Crocker :rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile <5280>` David Cooper et al.
:rfc:`RFC 4086: Randomness Requirements for Security <4086>` Donald E. Eastlake, Jeffrey I. Schiller, Steve Crocker :rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile <5280>` David Cooper et al.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3d22b0a3-b591-4a5b-82bd-8924c17e19b1
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,771
supabase-export-v2
2648b441d4dc993f
.. function:: RAND_status() Return ``True`` if the SSL pseudo-random number generator has been seeded with 'enough' randomness, and ``False`` otherwise. Use :func:`ssl.RAND_add` to increase the randomness of the pseudo-random number generator.
trusted_official_docs
CPython Docs
.. function:: RAND_status() Return ``True`` if the SSL pseudo-random number generator has been seeded with 'enough' randomness, and ``False`` otherwise. Use :func:`ssl.RAND_add` to increase the randomness of the pseudo-random number generator.
.. function:: RAND_status() Return ``True`` if the SSL pseudo-random number generator has been seeded with 'enough' randomness, and ``False`` otherwise. Use :func:`ssl.RAND_add` to increase the randomness of the pseudo-random number generator.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3d6901aa-7e55-482f-938e-951ca4e390bb
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,708
supabase-export-v2
f534d3bba7bfb542
the given *purpose*. The settings are chosen by the :mod:`!ssl` module, and usually represent a higher security level than when calling the :class:`SSLContext` constructor directly. *cafile*, *capath*, *cadata* represent optional CA certificates to trust for certificate verification, as in :meth:`SSLContext.load_veri...
trusted_official_docs
CPython Docs
the given *purpose*. The settings are chosen by the :mod:`!ssl` module, and usually represent a higher security level than when calling the :class:`SSLContext` constructor directly. *cafile*, *capath*, *cadata* represent optional CA certificates to trust for certificate verification, as in :meth:`SSLContext.load_veri...
the given *purpose*. The settings are chosen by the :mod:`!ssl` module, and usually represent a higher security level than when calling the :class:`SSLContext` constructor directly. *cafile*, *capath*, *cadata* represent optional CA certificates to trust for certificate verification, as in :meth:`SSLContext.load_veri...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3db6a6d7-ee81-4e7d-943f-69491d0d03ad
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,907
supabase-export-v2
870cfb0ff7bac87f
.. data:: OP_SINGLE_ECDH_USE Prevents reuse of the same ECDH key for distinct SSL sessions. This improves forward secrecy but requires more computational resources. This option only applies to server sockets.
trusted_official_docs
CPython Docs
.. data:: OP_SINGLE_ECDH_USE Prevents reuse of the same ECDH key for distinct SSL sessions. This improves forward secrecy but requires more computational resources. This option only applies to server sockets.
.. data:: OP_SINGLE_ECDH_USE Prevents reuse of the same ECDH key for distinct SSL sessions. This improves forward secrecy but requires more computational resources. This option only applies to server sockets.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3ed3e80c-f07b-494d-af29-619bbbcf7fe9
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,736
supabase-export-v2
a1f41d91c53ff257
the underlying network connection. This error is a subtype of :exc:`OSError`. The error code and message of :exc:`SSLError` instances are provided by the OpenSSL library. .. versionchanged:: 3.3 :exc:`SSLError` used to be a subtype of :exc:`socket.error`.
trusted_official_docs
CPython Docs
the underlying network connection. This error is a subtype of :exc:`OSError`. The error code and message of :exc:`SSLError` instances are provided by the OpenSSL library. .. versionchanged:: 3.3 :exc:`SSLError` used to be a subtype of :exc:`socket.error`.
the underlying network connection. This error is a subtype of :exc:`OSError`. The error code and message of :exc:`SSLError` instances are provided by the OpenSSL library. .. versionchanged:: 3.3 :exc:`SSLError` used to be a subtype of :exc:`socket.error`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3ed56ab8-7aac-4912-9668-58dd5262ac50
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,156
supabase-export-v2
e7bc580147c4fa04
>>> ctx = ssl.create_default_context() >>> ctx.minimum_version = ssl.TLSVersion.TLSv1_3 >>> ctx.maximum_version = ssl.TLSVersion.TLSv1_3 >>> ctx.get_groups() # doctest: +SKIP ['secp256r1', 'secp384r1', 'secp521r1', 'x25519', 'x448', ...] By default, this method returns only the preferred IANA names for the available g...
trusted_official_docs
CPython Docs
>>> ctx = ssl.create_default_context() >>> ctx.minimum_version = ssl.TLSVersion.TLSv1_3 >>> ctx.maximum_version = ssl.TLSVersion.TLSv1_3 >>> ctx.get_groups() # doctest: +SKIP ['secp256r1', 'secp384r1', 'secp521r1', 'x25519', 'x448', ...] By default, this method returns only the preferred IANA names for the available g...
>>> ctx = ssl.create_default_context() >>> ctx.minimum_version = ssl.TLSVersion.TLSv1_3 >>> ctx.maximum_version = ssl.TLSVersion.TLSv1_3 >>> ctx.get_groups() # doctest: +SKIP ['secp256r1', 'secp384r1', 'secp521r1', 'x25519', 'x448', ...] By default, this method returns only the preferred IANA names for the available g...
python, official-docs, cpython, P0
Local_Trusted_Corpus
41fc51fd-c106-44d9-81a2-d80ee5b6305f
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,099
supabase-export-v2
272eec0221daead4
.. attribute:: SSLSocket.session The :class:`SSLSession` for this SSL connection. The session is available for client and server side sockets after the TLS handshake has been performed. For client sockets the session can be set before :meth:`~SSLSocket.do_handshake` has been called to reuse a session.
trusted_official_docs
CPython Docs
.. attribute:: SSLSocket.session The :class:`SSLSession` for this SSL connection. The session is available for client and server side sockets after the TLS handshake has been performed. For client sockets the session can be set before :meth:`~SSLSocket.do_handshake` has been called to reuse a session.
.. attribute:: SSLSocket.session The :class:`SSLSession` for this SSL connection. The session is available for client and server side sockets after the TLS handshake has been performed. For client sockets the session can be set before :meth:`~SSLSocket.do_handshake` has been called to reuse a session.
python, official-docs, cpython, P0
Local_Trusted_Corpus
42c63b0c-3b29-43bd-bb7a-75d9603fb608
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,199
supabase-export-v2
44d0e7cdf2cefa22
If a TLS failure is required, a constant :const:`ALERT_DESCRIPTION_* <ALERT_DESCRIPTION_INTERNAL_ERROR>` can be returned. Other return values will result in a TLS fatal error with :const:`ALERT_DESCRIPTION_INTERNAL_ERROR`. If an exception is raised from the *sni_callback* function the TLS connection will terminate wit...
trusted_official_docs
CPython Docs
If a TLS failure is required, a constant :const:`ALERT_DESCRIPTION_* <ALERT_DESCRIPTION_INTERNAL_ERROR>` can be returned. Other return values will result in a TLS fatal error with :const:`ALERT_DESCRIPTION_INTERNAL_ERROR`. If an exception is raised from the *sni_callback* function the TLS connection will terminate wit...
If a TLS failure is required, a constant :const:`ALERT_DESCRIPTION_* <ALERT_DESCRIPTION_INTERNAL_ERROR>` can be returned. Other return values will result in a TLS fatal error with :const:`ALERT_DESCRIPTION_INTERNAL_ERROR`. If an exception is raised from the *sni_callback* function the TLS connection will terminate wit...
python, official-docs, cpython, P0
Local_Trusted_Corpus
43b800c2-8e5d-486d-911f-30d7652b4557
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,314
supabase-export-v2
13b909e2d2e06e5a
# A simple lambda: psk = bytes.fromhex('c0ffee') context.set_psk_server_callback(lambda identity: psk) # A table using the identity of the client: psk_table = { 'ClientId_1': bytes.fromhex('c0ffee'), 'ClientId_2': bytes.fromhex('facade') } def callback(identity): return psk_table.get(identity, b'') context.set_ps...
trusted_official_docs
CPython Docs
# A simple lambda: psk = bytes.fromhex('c0ffee') context.set_psk_server_callback(lambda identity: psk) # A table using the identity of the client: psk_table = { 'ClientId_1': bytes.fromhex('c0ffee'), 'ClientId_2': bytes.fromhex('facade') } def callback(identity): return psk_table.get(identity, b'') context.set_ps...
# A simple lambda: psk = bytes.fromhex('c0ffee') context.set_psk_server_callback(lambda identity: psk) # A table using the identity of the client: psk_table = { 'ClientId_1': bytes.fromhex('c0ffee'), 'ClientId_2': bytes.fromhex('facade') } def callback(identity): return psk_table.get(identity, b'') context.set_ps...
python, official-docs, cpython, P0
Local_Trusted_Corpus
43c0ddf4-c747-46e0-8909-2d46454276c4
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,679
supabase-export-v2
888fda5b7050d95a
.. note:: Some behavior may be platform dependent, since calls are made to the operating system socket APIs. The installed version of OpenSSL may also cause variations in behavior. For example, TLSv1.3 comes with OpenSSL version 1.1.1.
trusted_official_docs
CPython Docs
.. note:: Some behavior may be platform dependent, since calls are made to the operating system socket APIs. The installed version of OpenSSL may also cause variations in behavior. For example, TLSv1.3 comes with OpenSSL version 1.1.1.
.. note:: Some behavior may be platform dependent, since calls are made to the operating system socket APIs. The installed version of OpenSSL may also cause variations in behavior. For example, TLSv1.3 comes with OpenSSL version 1.1.1.
python, official-docs, cpython, P0
Local_Trusted_Corpus
43db7a5d-3191-42e4-8b3d-314ea77f9fc6
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,188
supabase-export-v2
08ca3b944c488ad4
.. method:: SSLContext.set_npn_protocols(npn_protocols) Specify which protocols the socket should advertise during the SSL/TLS handshake. It should be a list of strings, like ``['http/1.1', 'spdy/2']``, ordered by preference. The selection of a protocol will happen during the handshake, and will play out according t...
trusted_official_docs
CPython Docs
.. method:: SSLContext.set_npn_protocols(npn_protocols) Specify which protocols the socket should advertise during the SSL/TLS handshake. It should be a list of strings, like ``['http/1.1', 'spdy/2']``, ordered by preference. The selection of a protocol will happen during the handshake, and will play out according t...
.. method:: SSLContext.set_npn_protocols(npn_protocols) Specify which protocols the socket should advertise during the SSL/TLS handshake. It should be a list of strings, like ``['http/1.1', 'spdy/2']``, ordered by preference. The selection of a protocol will happen during the handshake, and will play out according t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4574e267-1c99-483c-9cb1-3239edb2bd9e
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,016
supabase-export-v2
b1f4d5adba2e621f
Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is :ref:`non-blocking <ssl-nonblocking>` and the write would block. As at any time a re-negotiation is possible, a call to :meth:`write` can also cause read operations.
trusted_official_docs
CPython Docs
Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is :ref:`non-blocking <ssl-nonblocking>` and the write would block. As at any time a re-negotiation is possible, a call to :meth:`write` can also cause read operations.
Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is :ref:`non-blocking <ssl-nonblocking>` and the write would block. As at any time a re-negotiation is possible, a call to :meth:`write` can also cause read operations.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4641a870-a4ff-4a52-9bb1-2b795252ad93
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,923
supabase-export-v2
614ac72c98d73831
.. data:: OP_ENABLE_KTLS Enable the use of the kernel TLS. To benefit from the feature, OpenSSL must have been compiled with support for it, and the negotiated cipher suites and extensions must be supported by it (a list of supported ones may vary by platform and kernel version).
trusted_official_docs
CPython Docs
.. data:: OP_ENABLE_KTLS Enable the use of the kernel TLS. To benefit from the feature, OpenSSL must have been compiled with support for it, and the negotiated cipher suites and extensions must be supported by it (a list of supported ones may vary by platform and kernel version).
.. data:: OP_ENABLE_KTLS Enable the use of the kernel TLS. To benefit from the feature, OpenSSL must have been compiled with support for it, and the negotiated cipher suites and extensions must be supported by it (a list of supported ones may vary by platform and kernel version).
python, official-docs, cpython, P0
Local_Trusted_Corpus
46913196-d617-48c9-a8fb-85d8ee885cdb
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,743
supabase-export-v2
3fa4913d8aae1d88
.. exception:: SSLZeroReturnError A subclass of :exc:`SSLError` raised when trying to read or write and the SSL connection has been closed cleanly. Note that this doesn't mean that the underlying transport (read TCP) has been closed.
trusted_official_docs
CPython Docs
.. exception:: SSLZeroReturnError A subclass of :exc:`SSLError` raised when trying to read or write and the SSL connection has been closed cleanly. Note that this doesn't mean that the underlying transport (read TCP) has been closed.
.. exception:: SSLZeroReturnError A subclass of :exc:`SSLError` raised when trying to read or write and the SSL connection has been closed cleanly. Note that this doesn't mean that the underlying transport (read TCP) has been closed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4a78d6dd-be9a-49e4-b909-200f6ac57f25
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,241
supabase-export-v2
ce3b1beda032037b
<https://docs.openssl.org/1.1.1/man3/SSL_CTX_sess_number/>`_ to their numeric values. For example, here is the total number of hits and misses in the session cache since the context was created:: >>> stats = context.session_stats() >>> stats['hits'], stats['misses'] (0, 0)
trusted_official_docs
CPython Docs
<https://docs.openssl.org/1.1.1/man3/SSL_CTX_sess_number/>`_ to their numeric values. For example, here is the total number of hits and misses in the session cache since the context was created:: >>> stats = context.session_stats() >>> stats['hits'], stats['misses'] (0, 0)
<https://docs.openssl.org/1.1.1/man3/SSL_CTX_sess_number/>`_ to their numeric values. For example, here is the total number of hits and misses in the session cache since the context was created:: >>> stats = context.session_stats() >>> stats['hits'], stats['misses'] (0, 0)
python, official-docs, cpython, P0
Local_Trusted_Corpus
4bcf97fd-db4b-4336-81b2-8a0c28b06fc8
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,354
supabase-export-v2
350afe588ea6ad81
Visual inspection shows that the certificate does identify the desired service (that is, the HTTPS host ``www.python.org``):: >>> pprint.pprint(cert) {'OCSP': ('http://ocsp.digicert.com',), 'caIssuers': ('http://cacerts.digicert.com/DigiCertSHA2ExtendedValidationServerCA.crt',), 'crlDistributionPoints': ('http://crl...
trusted_official_docs
CPython Docs
Visual inspection shows that the certificate does identify the desired service (that is, the HTTPS host ``www.python.org``):: >>> pprint.pprint(cert) {'OCSP': ('http://ocsp.digicert.com',), 'caIssuers': ('http://cacerts.digicert.com/DigiCertSHA2ExtendedValidationServerCA.crt',), 'crlDistributionPoints': ('http://crl...
Visual inspection shows that the certificate does identify the desired service (that is, the HTTPS host ``www.python.org``):: >>> pprint.pprint(cert) {'OCSP': ('http://ocsp.digicert.com',), 'caIssuers': ('http://cacerts.digicert.com/DigiCertSHA2ExtendedValidationServerCA.crt',), 'crlDistributionPoints': ('http://crl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4de7e468-144b-4b5f-bedb-0ad82b6b278d
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,426
supabase-export-v2
44bc3352a62ae7ba
If a client certificate is needed for the connection, it can be added with :meth:`SSLContext.load_cert_chain`. By contrast, if you create the SSL context by calling the :class:`SSLContext` constructor yourself, it will not have certificate validation nor hostname checking enabled by default. If you do so, please read t...
trusted_official_docs
CPython Docs
If a client certificate is needed for the connection, it can be added with :meth:`SSLContext.load_cert_chain`. By contrast, if you create the SSL context by calling the :class:`SSLContext` constructor yourself, it will not have certificate validation nor hostname checking enabled by default. If you do so, please read t...
If a client certificate is needed for the connection, it can be added with :meth:`SSLContext.load_cert_chain`. By contrast, if you create the SSL context by calling the :class:`SSLContext` constructor yourself, it will not have certificate validation nor hostname checking enabled by default. If you do so, please read t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4f093048-a1a3-4b2b-9047-4f505502176c
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,676
supabase-export-v2
1712ddeca34ff4f2
-------------- This module provides access to Transport Layer Security (often known as "Secure Sockets Layer") encryption and peer authentication facilities for network sockets, both client-side and server-side. This module uses the OpenSSL library.
trusted_official_docs
CPython Docs
-------------- This module provides access to Transport Layer Security (often known as "Secure Sockets Layer") encryption and peer authentication facilities for network sockets, both client-side and server-side. This module uses the OpenSSL library.
-------------- This module provides access to Transport Layer Security (often known as "Secure Sockets Layer") encryption and peer authentication facilities for network sockets, both client-side and server-side. This module uses the OpenSSL library.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4f2c8fed-b7c6-40d9-9f48-c19eec680da1
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,130
supabase-export-v2
79163613f46f1e2c
value may be supplied directly as the *password* argument. It will be ignored if the private key is not encrypted and no password is needed. If the *password* 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 passw...
trusted_official_docs
CPython Docs
value may be supplied directly as the *password* argument. It will be ignored if the private key is not encrypted and no password is needed. If the *password* 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 passw...
value may be supplied directly as the *password* argument. It will be ignored if the private key is not encrypted and no password is needed. If the *password* 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 passw...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4f95a874-d880-4589-9628-af1339c20a10
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,444
supabase-export-v2
de4af357f48c45f8
and are handled differently. :attr:`SSLSocket.session` and :class:`SSLSession` are not compatible with TLS 1.3. - Client-side certificates are also no longer verified during the initial handshake. A server can request a certificate at any time. Clients process certificate requests while they send or receive applicatio...
trusted_official_docs
CPython Docs
and are handled differently. :attr:`SSLSocket.session` and :class:`SSLSession` are not compatible with TLS 1.3. - Client-side certificates are also no longer verified during the initial handshake. A server can request a certificate at any time. Clients process certificate requests while they send or receive applicatio...
and are handled differently. :attr:`SSLSocket.session` and :class:`SSLSession` are not compatible with TLS 1.3. - Client-side certificates are also no longer verified during the initial handshake. A server can request a certificate at any time. Clients process certificate requests while they send or receive applicatio...
python, official-docs, cpython, P0
Local_Trusted_Corpus
507b9f79-de3f-4470-a4ed-9c0452342c2f
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,711
supabase-export-v2
faaa6b33d1db80ab
When :attr:`~SSLContext.keylog_filename` is supported and the environment variable :envvar:`SSLKEYLOGFILE` is set, :func:`create_default_context` enables key logging. The default settings for this context include :data:`VERIFY_X509_PARTIAL_CHAIN` and :data:`VERIFY_X509_STRICT`. These make the underlying OpenSSL implem...
trusted_official_docs
CPython Docs
When :attr:`~SSLContext.keylog_filename` is supported and the environment variable :envvar:`SSLKEYLOGFILE` is set, :func:`create_default_context` enables key logging. The default settings for this context include :data:`VERIFY_X509_PARTIAL_CHAIN` and :data:`VERIFY_X509_STRICT`. These make the underlying OpenSSL implem...
When :attr:`~SSLContext.keylog_filename` is supported and the environment variable :envvar:`SSLKEYLOGFILE` is set, :func:`create_default_context` enables key logging. The default settings for this context include :data:`VERIFY_X509_PARTIAL_CHAIN` and :data:`VERIFY_X509_STRICT`. These make the underlying OpenSSL implem...
python, official-docs, cpython, P0
Local_Trusted_Corpus
51b74763-7622-4970-bf05-0d126d317505
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,392
supabase-export-v2
ed8f00a93cbfbfa2
The following methods are available: - :attr:`~SSLSocket.context` - :attr:`~SSLSocket.server_side` - :attr:`~SSLSocket.server_hostname` - :attr:`~SSLSocket.session` - :attr:`~SSLSocket.session_reused` - :meth:`~SSLSocket.read` - :meth:`~SSLSocket.write` - :meth:`~SSLSocket.getpeercert` - :meth:`~SSLSocket.get_v...
trusted_official_docs
CPython Docs
The following methods are available: - :attr:`~SSLSocket.context` - :attr:`~SSLSocket.server_side` - :attr:`~SSLSocket.server_hostname` - :attr:`~SSLSocket.session` - :attr:`~SSLSocket.session_reused` - :meth:`~SSLSocket.read` - :meth:`~SSLSocket.write` - :meth:`~SSLSocket.getpeercert` - :meth:`~SSLSocket.get_v...
The following methods are available: - :attr:`~SSLSocket.context` - :attr:`~SSLSocket.server_side` - :attr:`~SSLSocket.server_hostname` - :attr:`~SSLSocket.session` - :attr:`~SSLSocket.session_reused` - :meth:`~SSLSocket.read` - :meth:`~SSLSocket.write` - :meth:`~SSLSocket.getpeercert` - :meth:`~SSLSocket.get_v...
python, official-docs, cpython, P0
Local_Trusted_Corpus
52c5f7c7-b271-4d29-9967-f87d1f642762
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,814
supabase-export-v2
5d17415f58ac9215
order perform TLS client cert authentication. If the client chooses to send a certificate, it is verified. Any verification error immediately aborts the TLS handshake. 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
order perform TLS client cert authentication. If the client chooses to send a certificate, it is verified. Any verification error immediately aborts the TLS handshake. Use of this setting requires a valid set of CA certificates to be passed to :meth:`SSLContext.load_verify_locations`.
order perform TLS client cert authentication. If the client chooses to send a certificate, it is verified. Any verification error immediately aborts the TLS handshake. 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
533bfb22-a790-4db5-98d7-84e1acc0c4b5
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,208
supabase-export-v2
354f6fc9da1d81a2
resources (both on the server and on the client). The *dhfile* parameter should be the path to a file containing DH parameters in PEM format. This setting doesn't apply to client sockets. You can also use the :data:`OP_SINGLE_DH_USE` option to further improve security.
trusted_official_docs
CPython Docs
resources (both on the server and on the client). The *dhfile* parameter should be the path to a file containing DH parameters in PEM format. This setting doesn't apply to client sockets. You can also use the :data:`OP_SINGLE_DH_USE` option to further improve security.
resources (both on the server and on the client). The *dhfile* parameter should be the path to a file containing DH parameters in PEM format. This setting doesn't apply to client sockets. You can also use the :data:`OP_SINGLE_DH_USE` option to further improve security.
python, official-docs, cpython, P0
Local_Trusted_Corpus
54d3fc32-6091-43e1-9556-fef20f912611
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,049
supabase-export-v2
bda810f4d3b4f876
.. method:: SSLSocket.shared_ciphers() Return the list of ciphers available in both the client and server. Each entry of the returned list is a three-value tuple containing the name of the cipher, the version of the SSL protocol that defines its use, and the number of secret bits the cipher uses. :meth:`~SSLSocket.s...
trusted_official_docs
CPython Docs
.. method:: SSLSocket.shared_ciphers() Return the list of ciphers available in both the client and server. Each entry of the returned list is a three-value tuple containing the name of the cipher, the version of the SSL protocol that defines its use, and the number of secret bits the cipher uses. :meth:`~SSLSocket.s...
.. method:: SSLSocket.shared_ciphers() Return the list of ciphers available in both the client and server. Each entry of the returned list is a three-value tuple containing the name of the cipher, the version of the SSL protocol that defines its use, and the number of secret bits the cipher uses. :meth:`~SSLSocket.s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
553566d7-6a15-4948-8c0e-4b153bea4b4f
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,925
supabase-export-v2
cfbb1bf8811cf3e9
via any available OpenSSL Providers. This might be undesirable if, for example, the application requires all cryptographic operations to be performed by the FIPS provider. This option is only available with OpenSSL 3.0.0 and later.
trusted_official_docs
CPython Docs
via any available OpenSSL Providers. This might be undesirable if, for example, the application requires all cryptographic operations to be performed by the FIPS provider. This option is only available with OpenSSL 3.0.0 and later.
via any available OpenSSL Providers. This might be undesirable if, for example, the application requires all cryptographic operations to be performed by the FIPS provider. This option is only available with OpenSSL 3.0.0 and later.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5633a916-04d7-4889-aa71-864383f6b9e7
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,194
supabase-export-v2
e9517fb45489297b
server when the TLS client specifies a server name indication. The server name indication mechanism is specified in :rfc:`6066` section 3 - Server Name Indication. Only one callback can be set per ``SSLContext``. If *sni_callback* is set to ``None`` then the callback is disabled. Calling this function a subsequent ti...
trusted_official_docs
CPython Docs
server when the TLS client specifies a server name indication. The server name indication mechanism is specified in :rfc:`6066` section 3 - Server Name Indication. Only one callback can be set per ``SSLContext``. If *sni_callback* is set to ``None`` then the callback is disabled. Calling this function a subsequent ti...
server when the TLS client specifies a server name indication. The server name indication mechanism is specified in :rfc:`6066` section 3 - Server Name Indication. Only one callback can be set per ``SSLContext``. If *sni_callback* is set to ``None`` then the callback is disabled. Calling this function a subsequent ti...
python, official-docs, cpython, P0
Local_Trusted_Corpus
59d95232-55c5-4683-b8c1-5e0012531edb
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,030
supabase-export-v2
7fe6797be2fa122d
is no certificate for the peer on the other end of the connection, return ``None``. If the SSL handshake hasn't been done yet, raise :exc:`ValueError`. If the ``binary_form`` parameter is :const:`False`, and a certificate was received from the peer, this method returns a :class:`dict` instance. If the certificate was...
trusted_official_docs
CPython Docs
is no certificate for the peer on the other end of the connection, return ``None``. If the SSL handshake hasn't been done yet, raise :exc:`ValueError`. If the ``binary_form`` parameter is :const:`False`, and a certificate was received from the peer, this method returns a :class:`dict` instance. If the certificate was...
is no certificate for the peer on the other end of the connection, return ``None``. If the SSL handshake hasn't been done yet, raise :exc:`ValueError`. If the ``binary_form`` parameter is :const:`False`, and a certificate was received from the peer, this method returns a :class:`dict` instance. If the certificate was...
python, official-docs, cpython, P0
Local_Trusted_Corpus
59f52adc-d5ca-4e39-a125-743d06217f0c
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,108
supabase-export-v2
a0289b33cba04a9c
.. table:: ======================== ============ ============ ============= ========= =========== =========== *client* / **server** **SSLv2** **SSLv3** **TLS** [3]_ **TLSv1** **TLSv1.1** **TLSv1.2** ------------------------ ------------ ------------ ------------- --------- ----------- ----------- *SSLv2* yes no no [...
trusted_official_docs
CPython Docs
.. table:: ======================== ============ ============ ============= ========= =========== =========== *client* / **server** **SSLv2** **SSLv3** **TLS** [3]_ **TLSv1** **TLSv1.1** **TLSv1.2** ------------------------ ------------ ------------ ------------- --------- ----------- ----------- *SSLv2* yes no no [...
.. table:: ======================== ============ ============ ============= ========= =========== =========== *client* / **server** **SSLv2** **SSLv3** **TLS** [3]_ **TLSv1** **TLSv1.1** **TLSv1.2** ------------------------ ------------ ------------ ------------- --------- ----------- ----------- *SSLv2* yes no no [...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5a8b6152-dcdc-4759-850c-5a2ba200f681
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,326
supabase-export-v2
337145f78afbb0b2
Certificate chains ^^^^^^^^^^^^^^^^^^ The Python files which contain certificates can contain a sequence of certificates, sometimes called a *certificate chain*. This chain should start with the specific certificate for the principal who "is" the client or server, and then the certificate for the issuer of that certifi...
trusted_official_docs
CPython Docs
Certificate chains ^^^^^^^^^^^^^^^^^^ The Python files which contain certificates can contain a sequence of certificates, sometimes called a *certificate chain*. This chain should start with the specific certificate for the principal who "is" the client or server, and then the certificate for the issuer of that certifi...
Certificate chains ^^^^^^^^^^^^^^^^^^ The Python files which contain certificates can contain a sequence of certificates, sometimes called a *certificate chain*. This chain should start with the specific certificate for the principal who "is" the client or server, and then the certificate for the issuer of that certifi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5c7e12d9-7787-4d0c-b0f5-76c306ab7feb
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,355
supabase-export-v2
aa592f0d27fde54a
'docs.python.org'), ('DNS', 'testpypi.org'), ('DNS', 'bugs.python.org'), ('DNS', 'wiki.python.org'), ('DNS', 'hg.python.org'), ('DNS', 'mail.python.org'), ('DNS', 'packaging.python.org'), ('DNS', 'pythonhosted.org'), ('DNS', 'www.pythonhosted.org'), ('DNS', 'test.pythonhosted.org'), ('DNS', 'us.pycon.org'), ('DNS', 'id...
trusted_official_docs
CPython Docs
'docs.python.org'), ('DNS', 'testpypi.org'), ('DNS', 'bugs.python.org'), ('DNS', 'wiki.python.org'), ('DNS', 'hg.python.org'), ('DNS', 'mail.python.org'), ('DNS', 'packaging.python.org'), ('DNS', 'pythonhosted.org'), ('DNS', 'www.pythonhosted.org'), ('DNS', 'test.pythonhosted.org'), ('DNS', 'us.pycon.org'), ('DNS', 'id...
'docs.python.org'), ('DNS', 'testpypi.org'), ('DNS', 'bugs.python.org'), ('DNS', 'wiki.python.org'), ('DNS', 'hg.python.org'), ('DNS', 'mail.python.org'), ('DNS', 'packaging.python.org'), ('DNS', 'pythonhosted.org'), ('DNS', 'www.pythonhosted.org'), ('DNS', 'test.pythonhosted.org'), ('DNS', 'us.pycon.org'), ('DNS', 'id...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5cb094e8-5bf4-439c-aa17-d12e32ab36db
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,121
supabase-export-v2
e92323a9ab223310
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. :class:`SSLContext` objects have the following methods and attributes:
trusted_official_docs
CPython Docs
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. :class:`SSLContext` objects have the following methods and attributes:
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. :class:`SSLContext` objects have the following methods and attributes:
python, official-docs, cpython, P0
Local_Trusted_Corpus
5d2d1dfc-0a26-4569-905c-20ba34390f78
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,103
supabase-export-v2
c67fa3e1bc4f58d8
.. versionadded:: 3.2 An SSL context holds various data longer-lived than single SSL connections, such as SSL configuration options, certificate(s) and private key(s). It also manages a cache of SSL sessions for server-side sockets, in order to speed up repeated connections from the same clients.
trusted_official_docs
CPython Docs
.. versionadded:: 3.2 An SSL context holds various data longer-lived than single SSL connections, such as SSL configuration options, certificate(s) and private key(s). It also manages a cache of SSL sessions for server-side sockets, in order to speed up repeated connections from the same clients.
.. versionadded:: 3.2 An SSL context holds various data longer-lived than single SSL connections, such as SSL configuration options, certificate(s) and private key(s). It also manages a cache of SSL sessions for server-side sockets, in order to speed up repeated connections from the same clients.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e48fc66-46b6-4e91-82f3-1d92875fb056
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,232
supabase-export-v2
e3ef93f69249b272
.. method:: SSLContext.wrap_bio(incoming, outgoing, server_side=False, \ server_hostname=None, session=None) Wrap the BIO objects *incoming* and *outgoing* and return an instance of :attr:`SSLContext.sslobject_class` (default :class:`SSLObject`). The SSL routines will read input data from the incoming BIO and write d...
trusted_official_docs
CPython Docs
.. method:: SSLContext.wrap_bio(incoming, outgoing, server_side=False, \ server_hostname=None, session=None) Wrap the BIO objects *incoming* and *outgoing* and return an instance of :attr:`SSLContext.sslobject_class` (default :class:`SSLObject`). The SSL routines will read input data from the incoming BIO and write d...
.. method:: SSLContext.wrap_bio(incoming, outgoing, server_side=False, \ server_hostname=None, session=None) Wrap the BIO objects *incoming* and *outgoing* and return an instance of :attr:`SSLContext.sslobject_class` (default :class:`SSLObject`). The SSL routines will read input data from the incoming BIO and write d...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e697746-4cf0-4252-99d5-0da5c8d1a74f
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,784
supabase-export-v2
bea66c453d0d1d63
.. function:: get_server_certificate(addr, ssl_version=PROTOCOL_TLS_CLIENT, \ ca_certs=None[, timeout]) Given the address ``addr`` of an SSL-protected server, as a (*hostname*, *port-number*) pair, fetches the server's certificate, and returns it as a PEM-encoded string. If ``ssl_version`` is specified, uses that ver...
trusted_official_docs
CPython Docs
.. function:: get_server_certificate(addr, ssl_version=PROTOCOL_TLS_CLIENT, \ ca_certs=None[, timeout]) Given the address ``addr`` of an SSL-protected server, as a (*hostname*, *port-number*) pair, fetches the server's certificate, and returns it as a PEM-encoded string. If ``ssl_version`` is specified, uses that ver...
.. function:: get_server_certificate(addr, ssl_version=PROTOCOL_TLS_CLIENT, \ ca_certs=None[, timeout]) Given the address ``addr`` of an SSL-protected server, as a (*hostname*, *port-number*) pair, fetches the server's certificate, and returns it as a PEM-encoded string. If ``ssl_version`` is specified, uses that ver...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5ec1e181-44bb-4df3-816e-ce3c93f0e558
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,233
supabase-export-v2
1861b0d3de189391
return an instance of :attr:`SSLContext.sslobject_class` (default :class:`SSLObject`). The SSL routines will read input data from the incoming BIO and write data to the outgoing BIO. The *server_side*, *server_hostname* and *session* parameters have the same meaning as in :meth:`SSLContext.wrap_socket`.
trusted_official_docs
CPython Docs
return an instance of :attr:`SSLContext.sslobject_class` (default :class:`SSLObject`). The SSL routines will read input data from the incoming BIO and write data to the outgoing BIO. The *server_side*, *server_hostname* and *session* parameters have the same meaning as in :meth:`SSLContext.wrap_socket`.
return an instance of :attr:`SSLContext.sslobject_class` (default :class:`SSLObject`). The SSL routines will read input data from the incoming BIO and write data to the outgoing BIO. The *server_side*, *server_hostname* and *session* parameters have the same meaning as in :meth:`SSLContext.wrap_socket`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5f93fed2-f3dd-4220-b97e-d4fcc3327700
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,020
supabase-export-v2
b8b16904891655c8
.. note:: The :meth:`~SSLSocket.read` and :meth:`~SSLSocket.write` methods are the low-level methods that read and write unencrypted, application-level data and decrypt/encrypt it to encrypted, wire-level data. These methods require an active SSL connection, i.e. the handshake was completed and :meth:`SSLSocket.unw...
trusted_official_docs
CPython Docs
.. note:: The :meth:`~SSLSocket.read` and :meth:`~SSLSocket.write` methods are the low-level methods that read and write unencrypted, application-level data and decrypt/encrypt it to encrypted, wire-level data. These methods require an active SSL connection, i.e. the handshake was completed and :meth:`SSLSocket.unw...
.. note:: The :meth:`~SSLSocket.read` and :meth:`~SSLSocket.write` methods are the low-level methods that read and write unencrypted, application-level data and decrypt/encrypt it to encrypted, wire-level data. These methods require an active SSL connection, i.e. the handshake was completed and :meth:`SSLSocket.unw...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5fb9141b-bff2-4ec6-b6ee-cea6e1be7f02
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,324
supabase-export-v2
14b09dcd9a32d15e
contain certificates. They should be formatted as "PEM" (see :rfc:`1422`), which is a base-64 encoded form wrapped with a header line and a footer line:: -----BEGIN CERTIFICATE----- ... (certificate in base64 PEM encoding) ... -----END CERTIFICATE-----
trusted_official_docs
CPython Docs
contain certificates. They should be formatted as "PEM" (see :rfc:`1422`), which is a base-64 encoded form wrapped with a header line and a footer line:: -----BEGIN CERTIFICATE----- ... (certificate in base64 PEM encoding) ... -----END CERTIFICATE-----
contain certificates. They should be formatted as "PEM" (see :rfc:`1422`), which is a base-64 encoded form wrapped with a header line and a footer line:: -----BEGIN CERTIFICATE----- ... (certificate in base64 PEM encoding) ... -----END CERTIFICATE-----
python, official-docs, cpython, P0
Local_Trusted_Corpus
5fcbb3d6-f0c8-4094-83b3-f4cd2066c772
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,939
supabase-export-v2
c2e2e332fcf0419d
.. data:: HAS_NPN Whether the OpenSSL library has built-in support for the *Next Protocol Negotiation* as described in the `Application Layer Protocol Negotiation <https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation>`_. When true, you can use the :meth:`SSLContext.set_npn_protocols` method to adverti...
trusted_official_docs
CPython Docs
.. data:: HAS_NPN Whether the OpenSSL library has built-in support for the *Next Protocol Negotiation* as described in the `Application Layer Protocol Negotiation <https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation>`_. When true, you can use the :meth:`SSLContext.set_npn_protocols` method to adverti...
.. data:: HAS_NPN Whether the OpenSSL library has built-in support for the *Next Protocol Negotiation* as described in the `Application Layer Protocol Negotiation <https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation>`_. When true, you can use the :meth:`SSLContext.set_npn_protocols` method to adverti...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6035b855-530c-439c-a599-6492cb74f09f
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,165
supabase-export-v2
555d495300bb25ef
.. method:: SSLContext.set_ciphersuites(ciphersuites, /) Set the allowed ciphers for sockets created with this context when connecting using TLS 1.3. The *ciphersuites* argument should be a colon-separate string of TLS 1.3 cipher names. If no cipher can be selected (because compile-time options or other configuratio...
trusted_official_docs
CPython Docs
.. method:: SSLContext.set_ciphersuites(ciphersuites, /) Set the allowed ciphers for sockets created with this context when connecting using TLS 1.3. The *ciphersuites* argument should be a colon-separate string of TLS 1.3 cipher names. If no cipher can be selected (because compile-time options or other configuratio...
.. method:: SSLContext.set_ciphersuites(ciphersuites, /) Set the allowed ciphers for sockets created with this context when connecting using TLS 1.3. The *ciphersuites* argument should be a colon-separate string of TLS 1.3 cipher names. If no cipher can be selected (because compile-time options or other configuratio...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6099f91b-afd1-48c3-8f70-9c75301a9b30
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,309
supabase-export-v2
0635d7e08fe8aa8d
Setting ``callback`` to :const:`None` removes any existing callback. The parameter ``identity_hint`` is an optional identity hint string sent to the client. The string must be less than or equal to ``256`` octets when UTF-8 encoded.
trusted_official_docs
CPython Docs
Setting ``callback`` to :const:`None` removes any existing callback. The parameter ``identity_hint`` is an optional identity hint string sent to the client. The string must be less than or equal to ``256`` octets when UTF-8 encoded.
Setting ``callback`` to :const:`None` removes any existing callback. The parameter ``identity_hint`` is an optional identity hint string sent to the client. The string must be less than or equal to ``256`` octets when UTF-8 encoded.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6252bf06-e387-4341-9854-a89ba83b61d6
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,017
supabase-export-v2
dffc6594d71c1b53
As at any time a re-negotiation is possible, a call to :meth:`write` can also cause read 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 write *data*.
trusted_official_docs
CPython Docs
As at any time a re-negotiation is possible, a call to :meth:`write` can also cause read 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 write *data*.
As at any time a re-negotiation is possible, a call to :meth:`write` can also cause read 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 write *data*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
629e52e5-2da4-4e08-b853-b42f4efa9696
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,423
supabase-export-v2
316dc37bc765ea20
context. It will load the system's trusted CA certificates, enable certificate validation and hostname checking, and try to choose reasonably secure protocol and cipher settings. For example, here is how you would use the :class:`smtplib.SMTP` class to create a trusted, secure connection to a SMTP server::
trusted_official_docs
CPython Docs
context. It will load the system's trusted CA certificates, enable certificate validation and hostname checking, and try to choose reasonably secure protocol and cipher settings. For example, here is how you would use the :class:`smtplib.SMTP` class to create a trusted, secure connection to a SMTP server::
context. It will load the system's trusted CA certificates, enable certificate validation and hostname checking, and try to choose reasonably secure protocol and cipher settings. For example, here is how you would use the :class:`smtplib.SMTP` class to create a trusted, secure connection to a SMTP server::
python, official-docs, cpython, P0
Local_Trusted_Corpus
62d55e96-22a7-43fe-a0cd-be7832a1c125
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,364
supabase-export-v2
cdc0d2d2b2aab23e
socket to get the new socket from the other end, and use the context's :meth:`SSLContext.wrap_socket` method to create a server-side SSL socket for the connection:: while True: newsocket, fromaddr = bindsocket.accept() connstream = context.wrap_socket(newsocket, server_side=True) try: deal_with_client(connstream) ...
trusted_official_docs
CPython Docs
socket to get the new socket from the other end, and use the context's :meth:`SSLContext.wrap_socket` method to create a server-side SSL socket for the connection:: while True: newsocket, fromaddr = bindsocket.accept() connstream = context.wrap_socket(newsocket, server_side=True) try: deal_with_client(connstream) ...
socket to get the new socket from the other end, and use the context's :meth:`SSLContext.wrap_socket` method to create a server-side SSL socket for the connection:: while True: newsocket, fromaddr = bindsocket.accept() connstream = context.wrap_socket(newsocket, server_side=True) try: deal_with_client(connstream) ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6367aa73-5aa8-4653-924f-e0471e8024a0
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,112
supabase-export-v2
c641c0486034cf37
.. versionchanged:: 3.6 The context is created with secure default values. The options :data:`OP_NO_COMPRESSION`, :data:`OP_CIPHER_SERVER_PREFERENCE`, :data:`OP_SINGLE_DH_USE`, :data:`OP_SINGLE_ECDH_USE`, :data:`OP_NO_SSLv2`, and :data:`OP_NO_SSLv3` (except for :data:`PROTOCOL_SSLv3`) are set by default. The initi...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.6 The context is created with secure default values. The options :data:`OP_NO_COMPRESSION`, :data:`OP_CIPHER_SERVER_PREFERENCE`, :data:`OP_SINGLE_DH_USE`, :data:`OP_SINGLE_ECDH_USE`, :data:`OP_NO_SSLv2`, and :data:`OP_NO_SSLv3` (except for :data:`PROTOCOL_SSLv3`) are set by default. The initi...
.. versionchanged:: 3.6 The context is created with secure default values. The options :data:`OP_NO_COMPRESSION`, :data:`OP_CIPHER_SERVER_PREFERENCE`, :data:`OP_SINGLE_DH_USE`, :data:`OP_SINGLE_ECDH_USE`, :data:`OP_NO_SSLv2`, and :data:`OP_NO_SSLv3` (except for :data:`PROTOCOL_SSLv3`) are set by default. The initi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
64a2327e-04fc-4086-b436-41e17dfcd3c7
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,366
supabase-export-v2
bbcb40eac3c8e505
you'll read data from the ``connstream`` and do something with it till you are finished with the client (or the client is finished with you):: def deal_with_client(connstream): data = connstream.recv(1024) # empty data means the client is finished with us while data: if not do_something(connstream, data): # we'll ...
trusted_official_docs
CPython Docs
you'll read data from the ``connstream`` and do something with it till you are finished with the client (or the client is finished with you):: def deal_with_client(connstream): data = connstream.recv(1024) # empty data means the client is finished with us while data: if not do_something(connstream, data): # we'll ...
you'll read data from the ``connstream`` and do something with it till you are finished with the client (or the client is finished with you):: def deal_with_client(connstream): data = connstream.recv(1024) # empty data means the client is finished with us while data: if not do_something(connstream, data): # we'll ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6798ff0c-2c90-403c-b730-e56a238ee30a
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,081
supabase-export-v2
f165b3fe8e57faf3
If any precondition isn't met (e.g. not TLS 1.3, PHA not enabled), an :exc:`SSLError` is raised. .. note:: Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 support, the method raises :exc:`NotImplementedError`.
trusted_official_docs
CPython Docs
If any precondition isn't met (e.g. not TLS 1.3, PHA not enabled), an :exc:`SSLError` is raised. .. note:: Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 support, the method raises :exc:`NotImplementedError`.
If any precondition isn't met (e.g. not TLS 1.3, PHA not enabled), an :exc:`SSLError` is raised. .. note:: Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 support, the method raises :exc:`NotImplementedError`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
681cee56-7fe2-4229-971d-0db57624285f
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,021
supabase-export-v2
02edcea87a9f4990
data and decrypt/encrypt it to encrypted, wire-level data. These methods require an active SSL connection, i.e. the handshake was completed and :meth:`SSLSocket.unwrap` was not called. Normally you should use the socket API methods like :meth:`~socket.socket.recv` and :meth:`~socket.socket.send` instead of these meth...
trusted_official_docs
CPython Docs
data and decrypt/encrypt it to encrypted, wire-level data. These methods require an active SSL connection, i.e. the handshake was completed and :meth:`SSLSocket.unwrap` was not called. Normally you should use the socket API methods like :meth:`~socket.socket.recv` and :meth:`~socket.socket.send` instead of these meth...
data and decrypt/encrypt it to encrypted, wire-level data. These methods require an active SSL connection, i.e. the handshake was completed and :meth:`SSLSocket.unwrap` was not called. Normally you should use the socket API methods like :meth:`~socket.socket.recv` and :meth:`~socket.socket.send` instead of these meth...
python, official-docs, cpython, P0
Local_Trusted_Corpus
688859b3-7f1f-4d8d-9500-194a731d29f7
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,084
supabase-export-v2
656085cdc53e2a9e
.. method:: SSLSocket.version() Return the actual SSL protocol version negotiated by the connection as a string, or ``None`` if no secure connection is established. As of this writing, possible return values include ``"SSLv2"``, ``"SSLv3"``, ``"TLSv1"``, ``"TLSv1.1"`` and ``"TLSv1.2"``. Recent OpenSSL versions may de...
trusted_official_docs
CPython Docs
.. method:: SSLSocket.version() Return the actual SSL protocol version negotiated by the connection as a string, or ``None`` if no secure connection is established. As of this writing, possible return values include ``"SSLv2"``, ``"SSLv3"``, ``"TLSv1"``, ``"TLSv1.1"`` and ``"TLSv1.2"``. Recent OpenSSL versions may de...
.. method:: SSLSocket.version() Return the actual SSL protocol version negotiated by the connection as a string, or ``None`` if no secure connection is established. As of this writing, possible return values include ``"SSLv2"``, ``"SSLv3"``, ``"TLSv1"``, ``"TLSv1.1"`` and ``"TLSv1.2"``. Recent OpenSSL versions may de...
python, official-docs, cpython, P0
Local_Trusted_Corpus
699d8a8b-baaf-41f1-b286-037bf8211da2
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,302
supabase-export-v2
ef4c607083bf91e9
# 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'') context.set_psk_client_callback(callback) This method will raise :exc:`NotImplementedError` if :data:`HAS_PSK` is ``Fa...
trusted_official_docs
CPython Docs
# 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'') context.set_psk_client_callback(callback) This method will raise :exc:`NotImplementedError` if :data:`HAS_PSK` is ``Fa...
# 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'') context.set_psk_client_callback(callback) This method will raise :exc:`NotImplementedError` if :data:`HAS_PSK` is ``Fa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
69fab200-a102-4cfa-ae27-4078176d163d
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,433
supabase-export-v2
f8e3ce999b27e8b6
Protocol versions ''''''''''''''''' SSL versions 2 and 3 are considered insecure and are therefore dangerous to use. If you want maximum compatibility between clients and servers, it is recommended to use :const:`PROTOCOL_TLS_CLIENT` or :const:`PROTOCOL_TLS_SERVER` as the protocol version. SSLv2 and SSLv3 are disabled ...
trusted_official_docs
CPython Docs
Protocol versions ''''''''''''''''' SSL versions 2 and 3 are considered insecure and are therefore dangerous to use. If you want maximum compatibility between clients and servers, it is recommended to use :const:`PROTOCOL_TLS_CLIENT` or :const:`PROTOCOL_TLS_SERVER` as the protocol version. SSLv2 and SSLv3 are disabled ...
Protocol versions ''''''''''''''''' SSL versions 2 and 3 are considered insecure and are therefore dangerous to use. If you want maximum compatibility between clients and servers, it is recommended to use :const:`PROTOCOL_TLS_CLIENT` or :const:`PROTOCOL_TLS_SERVER` as the protocol version. SSLv2 and SSLv3 are disabled ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6a2d0133-092c-48b3-a3c7-705f1dadeb91
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,026
supabase-export-v2
9512d45f78511099
.. versionchanged:: 3.4 The handshake method also performs :func:`!match_hostname` when the :attr:`~SSLContext.check_hostname` attribute of the socket's :attr:`~SSLSocket.context` is true. .. versionchanged:: 3.5 The socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the ...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.4 The handshake method also performs :func:`!match_hostname` when the :attr:`~SSLContext.check_hostname` attribute of the socket's :attr:`~SSLSocket.context` is true. .. versionchanged:: 3.5 The socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the ...
.. versionchanged:: 3.4 The handshake method also performs :func:`!match_hostname` when the :attr:`~SSLContext.check_hostname` attribute of the socket's :attr:`~SSLSocket.context` is true. .. versionchanged:: 3.5 The socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6a6a8a5a-891f-4267-aade-4789a721211e
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,997
supabase-export-v2
3ef220594f7b4b44
SSL sockets provide the following methods of :ref:`socket-objects`: - :meth:`~socket.socket.accept` - :meth:`~socket.socket.bind` - :meth:`~socket.socket.close` - :meth:`~socket.socket.connect` - :meth:`~socket.socket.detach` - :meth:`~socket.socket.fileno` - :meth:`~socket.socket.getpeername`, :meth:`~socket.soc...
trusted_official_docs
CPython Docs
SSL sockets provide the following methods of :ref:`socket-objects`: - :meth:`~socket.socket.accept` - :meth:`~socket.socket.bind` - :meth:`~socket.socket.close` - :meth:`~socket.socket.connect` - :meth:`~socket.socket.detach` - :meth:`~socket.socket.fileno` - :meth:`~socket.socket.getpeername`, :meth:`~socket.soc...
SSL sockets provide the following methods of :ref:`socket-objects`: - :meth:`~socket.socket.accept` - :meth:`~socket.socket.bind` - :meth:`~socket.socket.close` - :meth:`~socket.socket.connect` - :meth:`~socket.socket.detach` - :meth:`~socket.socket.fileno` - :meth:`~socket.socket.getpeername`, :meth:`~socket.soc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6cd98f21-ba5d-4ad6-84a4-7ea230eb21ac
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,332
supabase-export-v2
90943e608c19d23a
:meth:`SSLContext.load_cert_chain` needs to be passed. If the private key is stored with the certificate, it should come before the first certificate in the certificate chain:: -----BEGIN RSA PRIVATE KEY----- ... (private key in base64 encoding) ... -----END RSA PRIVATE KEY----- -----BEGIN CERTIFICATE----- ... (cert...
trusted_official_docs
CPython Docs
:meth:`SSLContext.load_cert_chain` needs to be passed. If the private key is stored with the certificate, it should come before the first certificate in the certificate chain:: -----BEGIN RSA PRIVATE KEY----- ... (private key in base64 encoding) ... -----END RSA PRIVATE KEY----- -----BEGIN CERTIFICATE----- ... (cert...
:meth:`SSLContext.load_cert_chain` needs to be passed. If the private key is stored with the certificate, it should come before the first certificate in the certificate chain:: -----BEGIN RSA PRIVATE KEY----- ... (private key in base64 encoding) ... -----END RSA PRIVATE KEY----- -----BEGIN CERTIFICATE----- ... (cert...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6e689823-4921-4af4-a147-dc12eb5bf169
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,732
supabase-export-v2
7a6d7314963d8ea1
Return a list of available TLS signature algorithm names used by servers to complete the TLS handshake or clients requesting certificate-based authentication. For example:: >>> ssl.get_sigalgs() # doctest: +SKIP ['ecdsa_secp256r1_sha256', 'ecdsa_secp384r1_sha384', ...]
trusted_official_docs
CPython Docs
Return a list of available TLS signature algorithm names used by servers to complete the TLS handshake or clients requesting certificate-based authentication. For example:: >>> ssl.get_sigalgs() # doctest: +SKIP ['ecdsa_secp256r1_sha256', 'ecdsa_secp384r1_sha384', ...]
Return a list of available TLS signature algorithm names used by servers to complete the TLS handshake or clients requesting certificate-based authentication. For example:: >>> ssl.get_sigalgs() # doctest: +SKIP ['ecdsa_secp256r1_sha256', 'ecdsa_secp384r1_sha384', ...]
python, official-docs, cpython, P0
Local_Trusted_Corpus
6fe43e1a-3eb7-4517-a2e9-e99e1562c600
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,400
supabase-export-v2
8b6afd60698d216b
Some notes related to the use of :class:`SSLObject`: - All IO on an :class:`SSLObject` is :ref:`non-blocking <ssl-nonblocking>`. This means that for example :meth:`~SSLSocket.read` will raise an :exc:`SSLWantReadError` if it needs more data than the incoming BIO has available.
trusted_official_docs
CPython Docs
Some notes related to the use of :class:`SSLObject`: - All IO on an :class:`SSLObject` is :ref:`non-blocking <ssl-nonblocking>`. This means that for example :meth:`~SSLSocket.read` will raise an :exc:`SSLWantReadError` if it needs more data than the incoming BIO has available.
Some notes related to the use of :class:`SSLObject`: - All IO on an :class:`SSLObject` is :ref:`non-blocking <ssl-nonblocking>`. This means that for example :meth:`~SSLSocket.read` will raise an :exc:`SSLWantReadError` if it needs more data than the incoming BIO has available.
python, official-docs, cpython, P0
Local_Trusted_Corpus
705f78a5-67b8-46d7-b650-3f863dea41a5
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,218
supabase-export-v2
2213e90f49c55ec0
:class:`SSLSocket`). The returned SSL socket is tied to the context, its settings and certificates. *sock* must be a :const:`~socket.SOCK_STREAM` socket; other socket types are unsupported. The parameter ``server_side`` is a boolean which identifies whether server-side or client-side behavior is desired from this sock...
trusted_official_docs
CPython Docs
:class:`SSLSocket`). The returned SSL socket is tied to the context, its settings and certificates. *sock* must be a :const:`~socket.SOCK_STREAM` socket; other socket types are unsupported. The parameter ``server_side`` is a boolean which identifies whether server-side or client-side behavior is desired from this sock...
:class:`SSLSocket`). The returned SSL socket is tied to the context, its settings and certificates. *sock* must be a :const:`~socket.SOCK_STREAM` socket; other socket types are unsupported. The parameter ``server_side`` is a boolean which identifies whether server-side or client-side behavior is desired from this sock...
python, official-docs, cpython, P0
Local_Trusted_Corpus
70bacd52-bd42-40aa-a783-65f686ff1a46
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,243
supabase-export-v2
8e769f7aa004f34c
.. attribute:: SSLContext.check_hostname Whether to match the peer cert's hostname in :meth:`SSLSocket.do_handshake`. The context's :attr:`~SSLContext.verify_mode` must be set to :data:`CERT_OPTIONAL` or :data:`CERT_REQUIRED`, and you must pass *server_hostname* to :meth:`~SSLContext.wrap_socket` in order to match ...
trusted_official_docs
CPython Docs
.. attribute:: SSLContext.check_hostname Whether to match the peer cert's hostname in :meth:`SSLSocket.do_handshake`. The context's :attr:`~SSLContext.verify_mode` must be set to :data:`CERT_OPTIONAL` or :data:`CERT_REQUIRED`, and you must pass *server_hostname* to :meth:`~SSLContext.wrap_socket` in order to match ...
.. attribute:: SSLContext.check_hostname Whether to match the peer cert's hostname in :meth:`SSLSocket.do_handshake`. The context's :attr:`~SSLContext.verify_mode` must be set to :data:`CERT_OPTIONAL` or :data:`CERT_REQUIRED`, and you must pass *server_hostname* to :meth:`~SSLContext.wrap_socket` in order to match ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
711df2b3-e732-41c0-bf39-369b7ac76191
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,329
supabase-export-v2
7bfb82b252c45457
CA certificates ^^^^^^^^^^^^^^^ If you are going to require validation of the other side of the connection's certificate, you need to provide a "CA certs" file, filled with the certificate chains for each issuer you are willing to trust. Again, this file just contains these chains concatenated together. For validation,...
trusted_official_docs
CPython Docs
CA certificates ^^^^^^^^^^^^^^^ If you are going to require validation of the other side of the connection's certificate, you need to provide a "CA certs" file, filled with the certificate chains for each issuer you are willing to trust. Again, this file just contains these chains concatenated together. For validation,...
CA certificates ^^^^^^^^^^^^^^^ If you are going to require validation of the other side of the connection's certificate, you need to provide a "CA certs" file, filled with the certificate chains for each issuer you are willing to trust. Again, this file just contains these chains concatenated together. For validation,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
720d0796-284c-48cf-93d0-541c7128509f
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,134
supabase-export-v2
d299b7c8de33f332
.. method:: SSLContext.load_default_certs(purpose=Purpose.SERVER_AUTH) Load a set of default "certification authority" (CA) certificates from default locations. On Windows it loads CA certs from the ``CA`` and ``ROOT`` system stores. On all systems it calls :meth:`SSLContext.set_default_verify_paths`. In the future ...
trusted_official_docs
CPython Docs
.. method:: SSLContext.load_default_certs(purpose=Purpose.SERVER_AUTH) Load a set of default "certification authority" (CA) certificates from default locations. On Windows it loads CA certs from the ``CA`` and ``ROOT`` system stores. On all systems it calls :meth:`SSLContext.set_default_verify_paths`. In the future ...
.. method:: SSLContext.load_default_certs(purpose=Purpose.SERVER_AUTH) Load a set of default "certification authority" (CA) certificates from default locations. On Windows it loads CA certs from the ``CA`` and ``ROOT`` system stores. On all systems it calls :meth:`SSLContext.set_default_verify_paths`. In the future ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
72606a06-d0c6-445d-bf60-331df0e3286c
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,212
supabase-export-v2
18cc55ef02d77acb
DH while arguably as secure. The *curve_name* parameter should be a string describing a well-known elliptic curve, for example ``prime256v1`` for a widely supported curve. This setting doesn't apply to client sockets. You can also use the :data:`OP_SINGLE_ECDH_USE` option to further improve security.
trusted_official_docs
CPython Docs
DH while arguably as secure. The *curve_name* parameter should be a string describing a well-known elliptic curve, for example ``prime256v1`` for a widely supported curve. This setting doesn't apply to client sockets. You can also use the :data:`OP_SINGLE_ECDH_USE` option to further improve security.
DH while arguably as secure. The *curve_name* parameter should be a string describing a well-known elliptic curve, for example ``prime256v1`` for a widely supported curve. This setting doesn't apply to client sockets. You can also use the :data:`OP_SINGLE_ECDH_USE` option to further improve security.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7268059b-8c46-4c29-944c-78dcf19935b0
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,129
supabase-export-v2
e737aef8889f2902
key will be taken from *certfile* as well. See the discussion of :ref:`ssl-certificates` for more information on how the certificate is stored in the *certfile*. The *password* argument may be a function to call to get the password for decrypting the private key. It will only be called if the private key is encrypted...
trusted_official_docs
CPython Docs
key will be taken from *certfile* as well. See the discussion of :ref:`ssl-certificates` for more information on how the certificate is stored in the *certfile*. The *password* argument may be a function to call to get the password for decrypting the private key. It will only be called if the private key is encrypted...
key will be taken from *certfile* as well. See the discussion of :ref:`ssl-certificates` for more information on how the certificate is stored in the *certfile*. The *password* argument may be a function to call to get the password for decrypting the private key. It will only be called if the private key is encrypted...
python, official-docs, cpython, P0
Local_Trusted_Corpus
73e8d628-79e9-4683-8a84-ab1382948106
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,391
supabase-export-v2
9109a11414483aea
is used to pass data from Python to the SSL protocol instance, while the *outgoing* BIO is used to pass data the other way around. The following methods are available:
trusted_official_docs
CPython Docs
is used to pass data from Python to the SSL protocol instance, while the *outgoing* BIO is used to pass data the other way around. The following methods are available:
is used to pass data from Python to the SSL protocol instance, while the *outgoing* BIO is used to pass data the other way around. The following methods are available:
python, official-docs, cpython, P0
Local_Trusted_Corpus
75e80122-9a66-4573-8b98-19d189d408ea
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,451
supabase-export-v2
38df28a2ac68f1b8
:rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile <5280>` David Cooper et al. :rfc:`RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 <5246>` Tim Dierks and Eric Rescorla.
trusted_official_docs
CPython Docs
:rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile <5280>` David Cooper et al. :rfc:`RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 <5246>` Tim Dierks and Eric Rescorla.
:rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile <5280>` David Cooper et al. :rfc:`RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 <5246>` Tim Dierks and Eric Rescorla.
python, official-docs, cpython, P0
Local_Trusted_Corpus
775340dd-ac99-424f-886c-8cca42c103de
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,012
supabase-export-v2
ff6183b44223224a
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. .. deprecated:: 3.6 Use :meth:`~SSLSocket.recv` instead of :meth:`~SSLSocket.read`.
trusted_official_docs
CPython Docs
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. .. deprecated:: 3.6 Use :meth:`~SSLSocket.recv` instead of :meth:`~SSLSocket.read`.
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. .. deprecated:: 3.6 Use :meth:`~SSLSocket.recv` instead of :meth:`~SSLSocket.read`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
78c94e86-a120-46db-8acf-93e497c3fa0e
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,010
supabase-export-v2
9f690d90505a4cb2
Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is :ref:`non-blocking <ssl-nonblocking>` and the read would block. As at any time a re-negotiation is possible, a call to :meth:`read` can also cause write operations.
trusted_official_docs
CPython Docs
Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is :ref:`non-blocking <ssl-nonblocking>` and the read would block. As at any time a re-negotiation is possible, a call to :meth:`read` can also cause write operations.
Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is :ref:`non-blocking <ssl-nonblocking>` and the read would block. As at any time a re-negotiation is possible, a call to :meth:`read` can also cause write operations.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7a553565-14a7-484c-ae2c-5dc182b45739
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,785
supabase-export-v2
f4b11c76f2db5aa6
server certificate against that set of root certificates, and will fail if the validation attempt fails. A timeout can be specified with the ``timeout`` parameter. .. versionchanged:: 3.3 This function is now IPv6-compatible.
trusted_official_docs
CPython Docs
server certificate against that set of root certificates, and will fail if the validation attempt fails. A timeout can be specified with the ``timeout`` parameter. .. versionchanged:: 3.3 This function is now IPv6-compatible.
server certificate against that set of root certificates, and will fail if the validation attempt fails. A timeout can be specified with the ``timeout`` parameter. .. versionchanged:: 3.3 This function is now IPv6-compatible.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c81c820-bfb5-455b-8163-405c84bf3a61
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,041
supabase-export-v2
65d371e1d928f3b2
.. method:: SSLSocket.get_verified_chain() Returns verified certificate chain provided by the other end of the SSL channel as a list of DER-encoded bytes. If certificate verification was disabled method acts the same as :meth:`~SSLSocket.get_unverified_chain`.
trusted_official_docs
CPython Docs
.. method:: SSLSocket.get_verified_chain() Returns verified certificate chain provided by the other end of the SSL channel as a list of DER-encoded bytes. If certificate verification was disabled method acts the same as :meth:`~SSLSocket.get_unverified_chain`.
.. method:: SSLSocket.get_verified_chain() Returns verified certificate chain provided by the other end of the SSL channel as a list of DER-encoded bytes. If certificate verification was disabled method acts the same as :meth:`~SSLSocket.get_unverified_chain`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7d1c999e-de53-4263-8355-c1e16d8656db
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,197
supabase-export-v2
e0163028a13ca6dd
this callback is to change the :class:`ssl.SSLSocket`'s :attr:`SSLSocket.context` attribute to a new object of type :class:`SSLContext` representing a certificate chain that matches the server name. Due to the early negotiation phase of the TLS connection, only limited methods and attributes are usable like :meth:`SS...
trusted_official_docs
CPython Docs
this callback is to change the :class:`ssl.SSLSocket`'s :attr:`SSLSocket.context` attribute to a new object of type :class:`SSLContext` representing a certificate chain that matches the server name. Due to the early negotiation phase of the TLS connection, only limited methods and attributes are usable like :meth:`SS...
this callback is to change the :class:`ssl.SSLSocket`'s :attr:`SSLSocket.context` attribute to a new object of type :class:`SSLContext` representing a certificate chain that matches the server name. Due to the early negotiation phase of the TLS connection, only limited methods and attributes are usable like :meth:`SS...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7de5fa70-1742-4b25-b016-460eb78db54b
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,253
supabase-export-v2
426f2d8a194409af
.. attribute:: SSLContext.maximum_version A :class:`TLSVersion` enum member representing the highest supported TLS version. The value defaults to :attr:`TLSVersion.MAXIMUM_SUPPORTED`. The attribute is read-only for protocols other than :const:`PROTOCOL_TLS`, :const:`PROTOCOL_TLS_CLIENT`, and :const:`PROTOCOL_TLS_SERV...
trusted_official_docs
CPython Docs
.. attribute:: SSLContext.maximum_version A :class:`TLSVersion` enum member representing the highest supported TLS version. The value defaults to :attr:`TLSVersion.MAXIMUM_SUPPORTED`. The attribute is read-only for protocols other than :const:`PROTOCOL_TLS`, :const:`PROTOCOL_TLS_CLIENT`, and :const:`PROTOCOL_TLS_SERV...
.. attribute:: SSLContext.maximum_version A :class:`TLSVersion` enum member representing the highest supported TLS version. The value defaults to :attr:`TLSVersion.MAXIMUM_SUPPORTED`. The attribute is read-only for protocols other than :const:`PROTOCOL_TLS`, :const:`PROTOCOL_TLS_CLIENT`, and :const:`PROTOCOL_TLS_SERV...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e50aed5-bbba-4ff4-9dc4-69d9f4f52293
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,794
supabase-export-v2
18708523d6eb8549
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``: * :attr:`cafile` - resolved path to cafile or ``None`` if the file doesn't exist, * :attr:`capath` - resolved path to capat...
trusted_official_docs
CPython Docs
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``: * :attr:`cafile` - resolved path to cafile or ``None`` if the file doesn't exist, * :attr:`capath` - resolved path to capat...
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``: * :attr:`cafile` - resolved path to cafile or ``None`` if the file doesn't exist, * :attr:`capath` - resolved path to capat...
python, official-docs, cpython, P0
Local_Trusted_Corpus
846bb12d-e1a0-4422-a5ca-cd42f4b8c7a3
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,106
supabase-export-v2
b84e074566b497b3
of the versions are not interoperable with the other versions. If not specified, the default is :data:`PROTOCOL_TLS`; it provides the most compatibility with other versions. Here's a table showing which versions in a client (down the side) can connect to which versions in a server (along the top):
trusted_official_docs
CPython Docs
of the versions are not interoperable with the other versions. If not specified, the default is :data:`PROTOCOL_TLS`; it provides the most compatibility with other versions. Here's a table showing which versions in a client (down the side) can connect to which versions in a server (along the top):
of the versions are not interoperable with the other versions. If not specified, the default is :data:`PROTOCOL_TLS`; it provides the most compatibility with other versions. Here's a table showing which versions in a client (down the side) can connect to which versions in a server (along the top):
python, official-docs, cpython, P0
Local_Trusted_Corpus
864a23aa-547c-46bd-af92-5ad246e869b9
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,714
supabase-export-v2
07b3cb842165ad52
If your application needs specific settings, you should create a :class:`SSLContext` and apply the settings yourself. .. note:: If you find that when certain older clients or servers attempt to connect with a :class:`SSLContext` created by this function that they get an error stating "Protocol or cipher suite mismat...
trusted_official_docs
CPython Docs
If your application needs specific settings, you should create a :class:`SSLContext` and apply the settings yourself. .. note:: If you find that when certain older clients or servers attempt to connect with a :class:`SSLContext` created by this function that they get an error stating "Protocol or cipher suite mismat...
If your application needs specific settings, you should create a :class:`SSLContext` and apply the settings yourself. .. note:: If you find that when certain older clients or servers attempt to connect with a :class:`SSLContext` created by this function that they get an error stating "Protocol or cipher suite mismat...
python, official-docs, cpython, P0
Local_Trusted_Corpus
873f9b60-d7ec-43e2-ac81-0ee87d69f5fc
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,422
supabase-export-v2
e543e1cb21af4928
Best defaults ^^^^^^^^^^^^^ For **client use**, if you don't have any special requirements for your security policy, it is highly recommended that you use the :func:`create_default_context` function to create your SSL context. It will load the system's trusted CA certificates, enable certificate validation and hostname...
trusted_official_docs
CPython Docs
Best defaults ^^^^^^^^^^^^^ For **client use**, if you don't have any special requirements for your security policy, it is highly recommended that you use the :func:`create_default_context` function to create your SSL context. It will load the system's trusted CA certificates, enable certificate validation and hostname...
Best defaults ^^^^^^^^^^^^^ For **client use**, if you don't have any special requirements for your security policy, it is highly recommended that you use the :func:`create_default_context` function to create your SSL context. It will load the system's trusted CA certificates, enable certificate validation and hostname...
python, official-docs, cpython, P0
Local_Trusted_Corpus
875bd27a-2b40-4591-a0c9-46300d4144e5
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,975
supabase-export-v2
ca8641fee35fa0e1
Alert Descriptions from :rfc:`5246` and others. The `IANA TLS Alert Registry <https://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-6>`_ contains this list and references to the RFCs where their meaning is defined. Used as the return value of the callback function in :meth:`SSLContext.set_s...
trusted_official_docs
CPython Docs
Alert Descriptions from :rfc:`5246` and others. The `IANA TLS Alert Registry <https://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-6>`_ contains this list and references to the RFCs where their meaning is defined. Used as the return value of the callback function in :meth:`SSLContext.set_s...
Alert Descriptions from :rfc:`5246` and others. The `IANA TLS Alert Registry <https://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-6>`_ contains this list and references to the RFCs where their meaning is defined. Used as the return value of the callback function in :meth:`SSLContext.set_s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
87aae68a-71da-4a78-b5e9-61bb0a8d8878
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,813
supabase-export-v2
bcf515757f38dbc3
Possible value for :attr:`SSLContext.verify_mode`. In client mode, :const:`CERT_OPTIONAL` has the same meaning as :const:`CERT_REQUIRED`. It is recommended to use :const:`CERT_REQUIRED` for client-side sockets instead. In server mode, a client certificate request is sent to the client. The client may either ignore the...
trusted_official_docs
CPython Docs
Possible value for :attr:`SSLContext.verify_mode`. In client mode, :const:`CERT_OPTIONAL` has the same meaning as :const:`CERT_REQUIRED`. It is recommended to use :const:`CERT_REQUIRED` for client-side sockets instead. In server mode, a client certificate request is sent to the client. The client may either ignore the...
Possible value for :attr:`SSLContext.verify_mode`. In client mode, :const:`CERT_OPTIONAL` has the same meaning as :const:`CERT_REQUIRED`. It is recommended to use :const:`CERT_REQUIRED` for client-side sockets instead. In server mode, a client certificate request is sent to the client. The client may either ignore the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
88900af5-ba18-4558-aa55-834f58a3820d
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,401
supabase-export-v2
53ef3846acce4819
:class:`SSLObject` is :ref:`non-blocking <ssl-nonblocking>`. This means that for example :meth:`~SSLSocket.read` will raise an :exc:`SSLWantReadError` if it needs more data than the incoming BIO has available. .. versionchanged:: 3.7 :class:`SSLObject` instances must be created with :meth:`~SSLContext.wrap_bio`. In e...
trusted_official_docs
CPython Docs
:class:`SSLObject` is :ref:`non-blocking <ssl-nonblocking>`. This means that for example :meth:`~SSLSocket.read` will raise an :exc:`SSLWantReadError` if it needs more data than the incoming BIO has available. .. versionchanged:: 3.7 :class:`SSLObject` instances must be created with :meth:`~SSLContext.wrap_bio`. In e...
:class:`SSLObject` is :ref:`non-blocking <ssl-nonblocking>`. This means that for example :meth:`~SSLSocket.read` will raise an :exc:`SSLWantReadError` if it needs more data than the incoming BIO has available. .. versionchanged:: 3.7 :class:`SSLObject` instances must be created with :meth:`~SSLContext.wrap_bio`. In e...
python, official-docs, cpython, P0
Local_Trusted_Corpus
88a27409-9bfb-4cb1-98e1-7e472fa3d6ac
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,289
supabase-export-v2
1a6a962befe16115
Whether to try to verify other peers' certificates and how to behave if verification fails. This attribute must be one of :data:`CERT_NONE`, :data:`CERT_OPTIONAL` or :data:`CERT_REQUIRED`. .. versionchanged:: 3.6 :attr:`SSLContext.verify_mode` returns :class:`VerifyMode` enum:
trusted_official_docs
CPython Docs
Whether to try to verify other peers' certificates and how to behave if verification fails. This attribute must be one of :data:`CERT_NONE`, :data:`CERT_OPTIONAL` or :data:`CERT_REQUIRED`. .. versionchanged:: 3.6 :attr:`SSLContext.verify_mode` returns :class:`VerifyMode` enum:
Whether to try to verify other peers' certificates and how to behave if verification fails. This attribute must be one of :data:`CERT_NONE`, :data:`CERT_OPTIONAL` or :data:`CERT_REQUIRED`. .. versionchanged:: 3.6 :attr:`SSLContext.verify_mode` returns :class:`VerifyMode` enum:
python, official-docs, cpython, P0
Local_Trusted_Corpus
88ec9d44-63ce-40ee-978d-badf7d5a7194
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,713
supabase-export-v2
30e4adea8fb328f2
options, cipher and other settings may change to more restrictive values anytime without prior deprecation. The values represent a fair balance between compatibility and security. If your application needs specific settings, you should create a :class:`SSLContext` and apply the settings yourself.
trusted_official_docs
CPython Docs
options, cipher and other settings may change to more restrictive values anytime without prior deprecation. The values represent a fair balance between compatibility and security. If your application needs specific settings, you should create a :class:`SSLContext` and apply the settings yourself.
options, cipher and other settings may change to more restrictive values anytime without prior deprecation. The values represent a fair balance between compatibility and security. If your application needs specific settings, you should create a :class:`SSLContext` and apply the settings yourself.
python, official-docs, cpython, P0
Local_Trusted_Corpus
89367f60-2bcd-4e54-b4a8-8ec8ad635873
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,438
supabase-export-v2
e12e7eddb447a13f
Cipher selection '''''''''''''''' If you have advanced security requirements, fine-tuning of the ciphers enabled when negotiating a SSL session is possible through the :meth:`SSLContext.set_ciphers` method. Starting from Python 3.2.3, the ssl module disables certain weak ciphers by default, but you may want to further ...
trusted_official_docs
CPython Docs
Cipher selection '''''''''''''''' If you have advanced security requirements, fine-tuning of the ciphers enabled when negotiating a SSL session is possible through the :meth:`SSLContext.set_ciphers` method. Starting from Python 3.2.3, the ssl module disables certain weak ciphers by default, but you may want to further ...
Cipher selection '''''''''''''''' If you have advanced security requirements, fine-tuning of the ciphers enabled when negotiating a SSL session is possible through the :meth:`SSLContext.set_ciphers` method. Starting from Python 3.2.3, the ssl module disables certain weak ciphers by default, but you may want to further ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
896dc636-6a0e-4c14-bef1-a01d055ea9ad
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,425
supabase-export-v2
e710f34c53f424dd
>>> import ssl, smtplib >>> smtp = smtplib.SMTP("mail.python.org", port=587) >>> context = ssl.create_default_context() >>> smtp.starttls(context=context) (220, b'2.0.0 Ready to start TLS') If a client certificate is needed for the connection, it can be added with :meth:`SSLContext.load_cert_chain`.
trusted_official_docs
CPython Docs
>>> import ssl, smtplib >>> smtp = smtplib.SMTP("mail.python.org", port=587) >>> context = ssl.create_default_context() >>> smtp.starttls(context=context) (220, b'2.0.0 Ready to start TLS') If a client certificate is needed for the connection, it can be added with :meth:`SSLContext.load_cert_chain`.
>>> import ssl, smtplib >>> smtp = smtplib.SMTP("mail.python.org", port=587) >>> context = ssl.create_default_context() >>> smtp.starttls(context=context) (220, b'2.0.0 Ready to start TLS') If a client certificate is needed for the connection, it can be added with :meth:`SSLContext.load_cert_chain`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8a28a86f-d8d6-4d17-9384-4b323b868ca2
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,357
supabase-export-v2
ccc55ac189580ae6
SAMEORIGIN', b'Content-Length: 45679', b'Accept-Ranges: bytes', b'Via: 1.1 varnish', b'Age: 2188', b'X-Served-By: cache-lcy1134-LCY', b'X-Cache: HIT', b'X-Cache-Hits: 11', b'Vary: Cookie', b'Strict-Transport-Security: max-age=63072000; includeSubDomains', b'Connection: close', b'', b''] See the discussion of :ref:`ssl-...
trusted_official_docs
CPython Docs
SAMEORIGIN', b'Content-Length: 45679', b'Accept-Ranges: bytes', b'Via: 1.1 varnish', b'Age: 2188', b'X-Served-By: cache-lcy1134-LCY', b'X-Cache: HIT', b'X-Cache-Hits: 11', b'Vary: Cookie', b'Strict-Transport-Security: max-age=63072000; includeSubDomains', b'Connection: close', b'', b''] See the discussion of :ref:`ssl-...
SAMEORIGIN', b'Content-Length: 45679', b'Accept-Ranges: bytes', b'Via: 1.1 varnish', b'Age: 2188', b'X-Served-By: cache-lcy1134-LCY', b'X-Cache: HIT', b'X-Cache-Hits: 11', b'Vary: Cookie', b'Strict-Transport-Security: max-age=63072000; includeSubDomains', b'Connection: close', b'', b''] See the discussion of :ref:`ssl-...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b692bfe-33d5-4e22-b099-363bd59b1652
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,142
supabase-export-v2
3295c3e9d1314eb0
The *capath* string, if present, is the path to a directory containing several CA certificates in PEM format, following an `OpenSSL specific layout <https://docs.openssl.org/master/man3/SSL_CTX_load_verify_locations/>`_. The *cadata* object, if present, is either an ASCII string of one or more PEM-encoded certificates...
trusted_official_docs
CPython Docs
The *capath* string, if present, is the path to a directory containing several CA certificates in PEM format, following an `OpenSSL specific layout <https://docs.openssl.org/master/man3/SSL_CTX_load_verify_locations/>`_. The *cadata* object, if present, is either an ASCII string of one or more PEM-encoded certificates...
The *capath* string, if present, is the path to a directory containing several CA certificates in PEM format, following an `OpenSSL specific layout <https://docs.openssl.org/master/man3/SSL_CTX_load_verify_locations/>`_. The *cadata* object, if present, is either an ASCII string of one or more PEM-encoded certificates...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b6d006f-9598-469b-b6ca-5960a86317a3
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,431
supabase-export-v2
9ed7887ec0070dd4
.. versionchanged:: 3.7 Hostname matchings is now performed by OpenSSL. Python no longer uses :func:`!match_hostname`. In server mode, if you want to authenticate your clients using the SSL layer (rather than using a higher-level authentication mechanism), you'll also have to specify :const:`CERT_REQUIRED` and similarl...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.7 Hostname matchings is now performed by OpenSSL. Python no longer uses :func:`!match_hostname`. In server mode, if you want to authenticate your clients using the SSL layer (rather than using a higher-level authentication mechanism), you'll also have to specify :const:`CERT_REQUIRED` and similarl...
.. versionchanged:: 3.7 Hostname matchings is now performed by OpenSSL. Python no longer uses :func:`!match_hostname`. In server mode, if you want to authenticate your clients using the SSL layer (rather than using a higher-level authentication mechanism), you'll also have to specify :const:`CERT_REQUIRED` and similarl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8caafd56-2abb-49ea-a57f-9afc8d94a9b3
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,375
supabase-export-v2
0e59135803d6db1d
of an SSL frame might have arrived. Therefore, you must be ready to handle :meth:`SSLSocket.recv` and :meth:`SSLSocket.send` failures, and retry after another call to :func:`~select.select`. - Conversely, since the SSL layer has its own framing, a SSL socket may still have data available for reading without :func:`~se...
trusted_official_docs
CPython Docs
of an SSL frame might have arrived. Therefore, you must be ready to handle :meth:`SSLSocket.recv` and :meth:`SSLSocket.send` failures, and retry after another call to :func:`~select.select`. - Conversely, since the SSL layer has its own framing, a SSL socket may still have data available for reading without :func:`~se...
of an SSL frame might have arrived. Therefore, you must be ready to handle :meth:`SSLSocket.recv` and :meth:`SSLSocket.send` failures, and retry after another call to :func:`~select.select`. - Conversely, since the SSL layer has its own framing, a SSL socket may still have data available for reading without :func:`~se...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8d1c0bae-967b-4e54-baff-54c5b67a4785
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,025
supabase-export-v2
0e5c7b622efdefd3
If *block* is true and the timeout obtained by :meth:`~socket.socket.gettimeout` is zero, the socket is set in blocking mode until the handshake is performed. .. versionchanged:: 3.4 The handshake method also performs :func:`!match_hostname` when the :attr:`~SSLContext.check_hostname` attribute of the socket's :attr...
trusted_official_docs
CPython Docs
If *block* is true and the timeout obtained by :meth:`~socket.socket.gettimeout` is zero, the socket is set in blocking mode until the handshake is performed. .. versionchanged:: 3.4 The handshake method also performs :func:`!match_hostname` when the :attr:`~SSLContext.check_hostname` attribute of the socket's :attr...
If *block* is true and the timeout obtained by :meth:`~socket.socket.gettimeout` is zero, the socket is set in blocking mode until the handshake is performed. .. versionchanged:: 3.4 The handshake method also performs :func:`!match_hostname` when the :attr:`~SSLContext.check_hostname` attribute of the socket's :attr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8db4c499-0489-4e05-8781-9e8650ac0f1a
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,033
supabase-export-v2
a8528ee9a7dea92e
((('description', '571208-SLe257oHY9fVQ07Z'),), (('countryName', 'US'),), (('stateOrProvinceName', 'California'),), (('localityName', 'San Francisco'),), (('organizationName', 'Electronic Frontier Foundation, Inc.'),), (('commonName', '*.eff.org'),), (('emailAddress', 'hostmaster@eff.org'),)), 'subjectAltName': (('DNS'...
trusted_official_docs
CPython Docs
((('description', '571208-SLe257oHY9fVQ07Z'),), (('countryName', 'US'),), (('stateOrProvinceName', 'California'),), (('localityName', 'San Francisco'),), (('organizationName', 'Electronic Frontier Foundation, Inc.'),), (('commonName', '*.eff.org'),), (('emailAddress', 'hostmaster@eff.org'),)), 'subjectAltName': (('DNS'...
((('description', '571208-SLe257oHY9fVQ07Z'),), (('countryName', 'US'),), (('stateOrProvinceName', 'California'),), (('localityName', 'San Francisco'),), (('organizationName', 'Electronic Frontier Foundation, Inc.'),), (('commonName', '*.eff.org'),), (('emailAddress', 'hostmaster@eff.org'),)), 'subjectAltName': (('DNS'...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8fca5d66-c606-4052-94f3-50b0c7e6c71d
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,163
supabase-export-v2
404eb133d98842fa
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
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.
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
92428db8-a33d-40f2-a25a-7a5c1ecc3787
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,105
supabase-export-v2
806d61284cd718da
.. class:: SSLContext(protocol=None) Create a new SSL context. You may pass *protocol* which must be one of the ``PROTOCOL_*`` constants defined in this module. The parameter specifies which version of the SSL protocol to use. Typically, the server chooses a particular protocol version, and the client must adapt to...
trusted_official_docs
CPython Docs
.. class:: SSLContext(protocol=None) Create a new SSL context. You may pass *protocol* which must be one of the ``PROTOCOL_*`` constants defined in this module. The parameter specifies which version of the SSL protocol to use. Typically, the server chooses a particular protocol version, and the client must adapt to...
.. class:: SSLContext(protocol=None) Create a new SSL context. You may pass *protocol* which must be one of the ``PROTOCOL_*`` constants defined in this module. The parameter specifies which version of the SSL protocol to use. Typically, the server chooses a particular protocol version, and the client must adapt to...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9459998a-0137-4052-9406-e9a8afe131e3
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,080
supabase-export-v2
0218eb3bc56d0d78
immediately. The server-side sends a CertificateRequest during the next write event and expects the client to respond with a certificate on the next read event. If any precondition isn't met (e.g. not TLS 1.3, PHA not enabled), an :exc:`SSLError` is raised.
trusted_official_docs
CPython Docs
immediately. The server-side sends a CertificateRequest during the next write event and expects the client to respond with a certificate on the next read event. If any precondition isn't met (e.g. not TLS 1.3, PHA not enabled), an :exc:`SSLError` is raised.
immediately. The server-side sends a CertificateRequest during the next write event and expects the client to respond with a certificate on the next read event. If any precondition isn't met (e.g. not TLS 1.3, PHA not enabled), an :exc:`SSLError` is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
970dad6d-7c2e-4265-8110-cd9019872dbc
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,990
supabase-export-v2
ff580d184f946a1e
.. attribute:: TLSVersion.MINIMUM_SUPPORTED .. attribute:: TLSVersion.MAXIMUM_SUPPORTED The minimum or maximum supported SSL or TLS version. These are magic constants. Their values don't reflect the lowest and highest available TLS/SSL versions.
trusted_official_docs
CPython Docs
.. attribute:: TLSVersion.MINIMUM_SUPPORTED .. attribute:: TLSVersion.MAXIMUM_SUPPORTED The minimum or maximum supported SSL or TLS version. These are magic constants. Their values don't reflect the lowest and highest available TLS/SSL versions.
.. attribute:: TLSVersion.MINIMUM_SUPPORTED .. attribute:: TLSVersion.MAXIMUM_SUPPORTED The minimum or maximum supported SSL or TLS version. These are magic constants. Their values don't reflect the lowest and highest available TLS/SSL versions.
python, official-docs, cpython, P0
Local_Trusted_Corpus
97431395-84e4-4d78-92b0-159afd00f01e
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,315
supabase-export-v2
e6fc4d9a13068d73
# A table using the identity of the client: psk_table = { 'ClientId_1': bytes.fromhex('c0ffee'), 'ClientId_2': bytes.fromhex('facade') } def callback(identity): return psk_table.get(identity, b'') context.set_psk_server_callback(callback, 'ServerId_1') This method will raise :exc:`NotImplementedError` if :data:`HAS_PSK...
trusted_official_docs
CPython Docs
# A table using the identity of the client: psk_table = { 'ClientId_1': bytes.fromhex('c0ffee'), 'ClientId_2': bytes.fromhex('facade') } def callback(identity): return psk_table.get(identity, b'') context.set_psk_server_callback(callback, 'ServerId_1') This method will raise :exc:`NotImplementedError` if :data:`HAS_PSK...
# A table using the identity of the client: psk_table = { 'ClientId_1': bytes.fromhex('c0ffee'), 'ClientId_2': bytes.fromhex('facade') } def callback(identity): return psk_table.get(identity, b'') context.set_psk_server_callback(callback, 'ServerId_1') This method will raise :exc:`NotImplementedError` if :data:`HAS_PSK...
python, official-docs, cpython, P0
Local_Trusted_Corpus
977926de-4d1c-4fa7-82bb-8ea72c9f89cf
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
32,804
supabase-export-v2
86c2e4e02f124bad
Retrieve CRLs 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` for X.5...
trusted_official_docs
CPython Docs
Retrieve CRLs 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` for X.5...
Retrieve CRLs 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` for X.5...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9793d08c-db28-4196-b57b-1c5be9e975ca
CPython Docs
file://datasets/cpython/Doc/library/ssl.rst
unknown
07d79692-13ee-4262-a503-2686ca28e16e
33,145
supabase-export-v2
0548e8f8b05d17e9
.. method:: SSLContext.get_ca_certs(binary_form=False) Get a list of loaded "certification authority" (CA) certificates. If the ``binary_form`` parameter is :const:`False` each list entry is a dict like the output of :meth:`SSLSocket.getpeercert`. Otherwise the method returns a list of DER-encoded certificates. The ...
trusted_official_docs
CPython Docs
.. method:: SSLContext.get_ca_certs(binary_form=False) Get a list of loaded "certification authority" (CA) certificates. If the ``binary_form`` parameter is :const:`False` each list entry is a dict like the output of :meth:`SSLSocket.getpeercert`. Otherwise the method returns a list of DER-encoded certificates. The ...
.. method:: SSLContext.get_ca_certs(binary_form=False) Get a list of loaded "certification authority" (CA) certificates. If the ``binary_form`` parameter is :const:`False` each list entry is a dict like the output of :meth:`SSLSocket.getpeercert`. Otherwise the method returns a list of DER-encoded certificates. The ...
python, official-docs, cpython, P0
Local_Trusted_Corpus