Does Python work with post-quantum hybrid key exchange with older peers?
If you run Python services that must keep talking to older clients, peers and middleboxes while you add hybrid key exchange, the short answer is that Python 3.15 can offer post-quantum key agreement groups through SSLContext.set_groups() when it is linked to OpenSSL 3.5 or later. Whether a given older peer completes the handshake depends on the group that is negotiated and on any middlebox between the two ends, and the sources checked on 2026-12-03 do not test that. The Python 3.15 What's New page describes the API but lists no compatibility test results, so no interoperability claim should be taken from it. Treat compatibility as something you must establish in your own environment.
Start by confirming the OpenSSL build your Python links against, because the post-quantum groups are only available with OpenSSL 3.5 or later. SSLContext.get_groups() requires OpenSSL 3.5 or later, and SSLSocket.group() requires OpenSSL 3.2 or later, so a mismatch will show up in those calls first. OpenSSL 3.5.0 changed the default TLS key shares to offer X25519MLKEM768 and X25519, which means a client on that build may offer a hybrid group by default. Check which groups your peers actually accept before you rely on the defaults.
Build a test matrix that pairs your Python endpoints with each older client, peer and middlebox class you must support, and record the negotiated group with SSLSocket.group() for every successful connection. A failed handshake against an older peer is a signal to narrow the list passed to set_groups() or to keep classical groups in the list, not to drop the test. Pay particular attention to inspection devices and load balancers in the path, since they terminate or rewrite the handshake and can fail on larger hybrid key shares even when both endpoints are capable. Keep a record of each result with the Python, OpenSSL and peer versions, because the compatibility answer changes with every component.
The ssl module documentation warns that its default protocol, option and cipher settings may become more restrictive at any time without prior deprecation, so pin the settings you test rather than relying on create_default_context(). Confirm with each vendor, and in each product's documentation, which key agreement groups it accepts before you change any production setting.
Which Python, OpenSSL and cryptography versions support hybrid key exchange
This table lists each Python, OpenSSL and cryptography component that the sources cover for hybrid key exchange, with the version it needs and the source and date for each row. Read it by checking the OpenSSL build linked to your Python interpreter, since the ssl module depends on that build and not on the cryptography package's bundled copy. The sources do not say which peers accept the hybrid group, so confirm that with each peer before relying on it.
| Component | Version or requirement | Source and date |
|---|---|---|
| Python 3.15 ssl set_groups() | Sets the key agreement groups allowed; supports ECDH, finite-field and post-quantum groups | Python 3.15 What's New, checked 2026-12-03 |
| Python 3.15 ssl get_groups() | Lists available groups; requires OpenSSL 3.5 or later | Python 3.15 What's New, checked 2026-12-03 |
| Python 3.15 SSLSocket.group() | Returns the key agreement group used on a connection; requires OpenSSL 3.2 or later | Python 3.15 What's New, checked 2026-12-03 |
| OpenSSL 3.5 default key shares | Offers X25519MLKEM768 and X25519 by default and prefers hybrid post-quantum KEM groups | OpenSSL 3.5 NEWS, released 8 Apr 2025 |
| CPython 3.14 and 3.15 builds | Windows builds and macOS installer moved to OpenSSL 3.5.8; 3.15 macOS installer updated to OpenSSL 3.5.9 | CPython issue 156369 and PR 158460, merged 2026-09-30 |
| cryptography 51.0.0 bundled OpenSSL | Ships its own bundled OpenSSL 4.1.1 in pip wheels, separate from the ssl module's OpenSSL | cryptography changelog, released 2026-12-01 |
| cryptography ML-KEM with OpenSSL 3.5 | MLKEM768 and MLKEM1024 classes available in wheels when using OpenSSL 3.5.0 or later | cryptography changelog, 48.0.0 released 2026-05-04 |
| Peer acceptance of the hybrid group | The sources do not say which peers accept X25519MLKEM768 or other hybrid groups | Not stated in the sources listed on this page |
Where the key share and the middlebox sit in a Python TLS handshake
This illustrative diagram traces a TLS 1.3 handshake in which a Python 3.15 client or server, linked to OpenSSL 3.5, offers X25519MLKEM768 and X25519 key shares, which OpenSSL 3.5 sets as its default key shares. The client sends both shares in its ClientHello, and the peer chooses one group in its ServerHello, so the selected group is what SSLSocket.group() reports (OpenSSL 3.2 or later). A middlebox or older peer sits between the two endpoints, and the path where it changes or drops the larger hybrid key share is the step the sources do not test, so confirm it in your own environment before relying on a fallback to X25519.
Illustrative handshake; the middlebox step is the point the sources do not test.
Which parts of the connection decide whether a peer can negotiate
Whether a Python connection can agree on a post-quantum group depends on several layers at once: the OpenSSL build behind the ssl module, the groups and key shares it offers, the TLS versions it allows, the separate OpenSSL inside the cryptography package, and any middlebox that terminates TLS before the peer sees it. Check each layer, because a failure in one can look like a failure in another.
OpenSSL build under the ssl module
The ssl module requires OpenSSL 1.1.1 or newer since Python 3.10, and the algorithms it can offer come from whichever OpenSSL build it is linked against. Post-quantum groups only appear when that build supports them, and the 3.15 group methods that report them need OpenSSL 3.5 or later. Run ssl.OPENSSL_VERSION in the exact interpreter that serves or calls the connection, because a system Python, a Homebrew build and a python.org installer can each link a different OpenSSL. The sources do not describe how this build behaves when the peer runs an older OpenSSL.
Groups list set with set_groups()
In Python 3.15, SSLContext.set_groups() sets the key agreement groups the context allows, using the OpenSSL group list format, and it can list post-quantum and hybrid groups alongside ECDH curves. A group missing from this list cannot be negotiated, even if the OpenSSL build supports it, so check the list on both the server and client contexts. Use SSLSocket.group() after a handshake to see which group was actually used. The sources do not describe how a peer that lacks these groups reacts beyond the handshake failing.
Default key shares from OpenSSL 3.5
OpenSSL 3.5.0 changed the default TLS key shares to offer X25519MLKEM768 and X25519, and it prefers hybrid post-quantum groups in its default supported groups. A client that sends these key shares can complete a hybrid exchange with a peer that accepts them, but a peer that does not accept them forces a fallback or a failed handshake. Confirm the negotiated group in each direction rather than assuming the default was used. The sources do not describe how older peers handle these defaults.
OpenSSL 3.5 NEWSTLS version range from minimum_version
The ssl docs say PROTOCOL_TLS, PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER use TLS 1.2 as the minimum since Python 3.10, and minimum_version and maximum_version on SSLContext set the range. Post-quantum key agreement is part of TLS 1.3 negotiation, so a context limited to TLS 1.2 may not reach a hybrid group at all. Set the range explicitly and record it for each service. The sources do not describe how peers that only speak TLS 1.2 interact with a TLS 1.3 context.
Separate OpenSSL in cryptography
A pip-installed cryptography package uses its own statically linked OpenSSL rather than the one the ssl module uses. Its changelog lists bundled OpenSSL 4.1.1 in cryptography 51.0.0, so the two libraries can report different capabilities in the same process. Check the cryptography version and its bundled OpenSSL separately from ssl.OPENSSL_VERSION when you inventory a service. The sources do not describe whether these two stacks negotiate differently when they are used together on one connection.
Middleboxes and load balancers that terminate TLS
A load balancer, reverse proxy or inspection device that ends TLS in front of a Python service negotiates with the client, not with the Python process. The group and version the client sees may therefore be set by that device, and a Python change may not affect what peers experience. List every terminating hop between each client and the service, and test with the device in place. The sources do not describe how these devices handle post-quantum groups, so confirm the behavior with each vendor.
Python ssl docsHow compatibility differs for Python servers and clients
A Python 3.15 server built with ssl uses the OpenSSL it is linked against for its TLS handshake. Python 3.15 added SSLContext.set_groups(), which sets the groups allowed for key agreement and accepts finite-field and post-quantum groups alongside ECDH curves, and SSLContext.get_groups() lists the groups available in that build. The What's New page says get_groups() requires OpenSSL 3.5 or later, so a server linked against an older OpenSSL cannot list or offer the post-quantum groups at all. The sources do not describe how an older client responds to a server that offers a hybrid group first, so that behavior must be tested with the clients you actually serve.
- Server defaults:
ssl.create_default_context()withPROTOCOL_TLS_SERVERdisables SSLv2 and SSLv3 and sets the minimum TLS version to 1.2, so older TLS 1.0 and 1.1 clients fail the handshake. - Key agreement control: Use
set_groups()to restrict the groups offered, so you can keep classical groups for legacy clients while testing a hybrid group. - Signature restrictions: Python 3.15 adds
set_server_sigalgs(), which limits handshake signature algorithms from Python code. - Verification of the connection:
SSLSocket.group()reports the group used for key agreement on each connection, which lets you measure what each client negotiates. - Default changes: The ssl docs warn that create_default_context() settings may become more restrictive at any time without prior deprecation, so pin the settings you depend on.
Before a rollout, confirm the OpenSSL version your server build links against, then record which groups each legacy client negotiates on a test endpoint.
A Python 3.15 client that calls older servers negotiates key agreement through the same OpenSSL-based ssl module, using set_groups() on the client context. The Python 3.15 docs note that set_ecdh_curve() does not apply to client sockets, so client-side group selection must go through set_groups(). Whether an older server accepts a post-quantum group offered by the client is not covered by the sources, and the sources do not describe how servers that lack support respond. The client should therefore be tested against each server it calls before any group is restricted.
- Group offers:
set_groups()on the client context determines which groups the client offers in its key share. - Negotiated result:
SSLSocket.group()returns the group that was actually used, which is the value to log during testing. - Certificate validation:
create_default_context()withSERVER_AUTHsets verify_mode to CERT_REQUIRED and loads CA certificates, and since Python 3.13 it includes VERIFY_X509_PARTIAL_CHAIN and VERIFY_X509_STRICT, which can reject older certificate chains that a server still presents. - Cipher limits: The default cipher list since Python 3.10 requires security level 2, which prohibits RSA and DH keys under 2048 bits, so an older server with a smaller key will fail.
- Client-side signatures:
set_client_sigalgs()restricts the signature algorithms the client accepts during the handshake.
For each internal service the client calls, confirm the groups it negotiates and the certificate chain it presents, and record any failures before changing the client's group list.
A Python service linked against a system OpenSSL older than 3.5 has no access to the post-quantum groups, because OpenSSL 3.5.0 is the release that added ML-KEM, ML-DSA and SLH-DSA and changed the default TLS groups to prefer hybrid KEM groups. The Python 3.15 docs say get_groups() requires OpenSSL 3.5 or later, and SSLSocket.group() requires OpenSSL 3.2 or later, so a service on an older build can call neither reliably. The behavior of such a service during negotiation with a hybrid-capable peer is not described in the sources, so the reader must confirm it on their own systems.
- Version check: Confirm the OpenSSL version the Python interpreter reports, not only the version installed as a system package, since a Python build can link a different library.
- Group availability: If the build is below 3.5,
get_groups()is unavailable, and groups cannot be listed or verified from Python. - Group reporting:
SSLSocket.group()needs OpenSSL 3.2 or later, so builds below 3.2 cannot report the negotiated group. - Default negotiation: OpenSSL 3.5 changed the default key shares to offer X25519MLKEM768 and X25519, so the default group behavior differs between builds on either side of 3.5.
- Dependency coverage: Check whether other libraries the service loads also link the older OpenSSL.
Record the OpenSSL version reported by the running interpreter and list the features that version lacks before scheduling any change to the service.
A pip-installed cryptography package ships statically linked wheels with its own bundled OpenSSL, so its algorithms do not depend on the OpenSSL the ssl module uses. The cryptography changelog lists bundled OpenSSL 4.1.1 in version 51.0.0, released 2026-12-01. The changelog says ML-KEM key encapsulation and ML-DSA signing became available in wheels from version 48.0.0 when using OpenSSL 3.5.0 or later, and that X.509 verification accepts ML-DSA-44, ML-DSA-65 and ML-DSA-87 by default from version 50.0.0. So a service may have post-quantum algorithms in cryptography while its ssl connections still use a different OpenSSL, and the two can disagree.
- Two libraries: The
sslmodule and thecryptographypackage can report different OpenSSL versions in the same process, so check both. - Version boundaries: ML-KEM and ML-DSA appear in cryptography from 47.0.0 and 48.0.0, while the changelog I read mentioned no SLH-DSA or X25519MLKEM768 entries for version 51.0.0.
- Unsupported backends: The MLKEM and MLDSA key classes raise UnsupportedAlgorithm if the backend lacks support, so code must handle that exception.
- Certificate effects: Changes to X.509 verification can alter which certificates a service accepts, so test verification against your certificate chains.
- RSA sizes: The cryptography docs say RSA keys of 1024 bits and below are considered breakable and recommend 2048 or 4096 bits for new keys.
For each service, record the cryptography version and its bundled OpenSSL, and test certificate verification separately from the ssl connections it makes.
What to test first before turning on a post-quantum group
This sequence confirms that your Python and OpenSSL builds can offer a post-quantum key exchange group, then proves on a non-production listener which group a real connection negotiates. It also records how older clients, peers and middleboxes behave before any group reaches production traffic.
Confirm Python and OpenSSL versions
Run
import ssl; print(ssl.OPENSSL_VERSION)on each host image that will serve or call TLS, and record the Python release and the linked OpenSSL version. The Python 3.15 documentation tiesget_groups()to OpenSSL 3.5 or later, andSSLSocket.group()to OpenSSL 3.2 or later, so a build below those versions cannot run the later checks. This step closes when every host in scope has a recorded Python and OpenSSL pair that meets those minimums, and any host below them is flagged for a rebuild or exclusion.List groups available to the build
Call
SSLContext.get_groups()in a fresh interpreter on the same host and save the output next to the version record from the previous step. The Python 3.15 documentation says this list is available from 3.15 on, so the call will fail on older interpreters, which is itself a result to record. This step closes when the list is captured and you can see whether any post-quantum hybrid group appears; if none appears, the build cannot negotiate one and the later steps do not apply to that host.Set a test group on a non-production listener
On a non-production listener, call
SSLContext.set_groups()with a group list in OpenSSL's group list format, naming one hybrid post-quantum group that appeared in the previous step. Keep the listener out of production DNS and traffic, and keep a second listener with the default settings for comparison. This step closes when the test listener starts without error and accepts a connection from a test client, which shows the configuration loads on that build.Record the negotiated group with SSLSocket.group()
After each test handshake, call
group()on the connectedSSLSocketand log the returned name alongside the client identifier and timestamp. The documentation describes this as the key agreement group used on that connection, so it shows what was actually negotiated rather than what was offered. This step closes when a sample of test connections shows the expected group name in the log, and any connection that reports a different group or none is noted for review.Test each older client, peer and middlebox class
Repeat the handshake from each class of client that reaches the service in production, including older library versions, peer services, and any inspecting proxy or firewall on the path, one class at a time. Use the same listener and log the negotiated group and any handshake failure for each class. Older clients may not offer the group at all, so a fallback to a classical group is an expected result to check rather than an error to hide. This step closes when every class in the inventory has a recorded outcome.
Record fallbacks and failures before enabling
Compile the outcomes into one table listing each client class, the group negotiated, whether a fallback occurred, and any failure with its error text. Confirm with the owners of each middlebox and peer whether they accept the handshake sizes the hybrid group produces, since the vendor documentation for those devices is the source for that answer rather than these Python results. This step closes when every failure has an owner and a documented decision, either a fix, an exclusion or an accepted fallback, and the table is kept with the change record for the next review.
What the sources do not say about older peers and middleboxes
The sources listed on this page cover how Python's ssl module, OpenSSL and the cryptography package behave, but they stop short of describing how older peers and middleboxes handle hybrid key shares. Each gap below is a question to put to a vendor, a peer's maintainer or the CPython project before relying on a hybrid setup.
Peers and middleboxes that reject hybrid key shares
The sources listed here do not name any peer, load balancer, firewall or inspection appliance that rejects or drops a hybrid key share. Python 3.15 can offer groups such as X25519MLKEM768 through set_groups(), but a handshake can still fail further along the path. Ask each middlebox vendor whether its TLS stack accepts ClientHello messages carrying hybrid key shares, and ask the maintainers of the older peers you connect to. Then test a handshake from a Python 3.15 client through each device on the path before enabling hybrid groups in production.
Python ssl docsWhether set_groups() falls back
The Python 3.15 ssl documentation describes set_groups() as setting the groups allowed for key agreement, but the sources do not say what happens when the peer shares none of those groups. Whether the handshake fails outright or drops to a classical group is not stated. Ask the peer's operator which groups their server supports, and test a connection with a group list that the peer does not offer. Record what SSLSocket.group() returns and whether the handshake completes.
Python 3.15 What's NewDefault group order in the 3.15 ssl module
The sources list which groups SSLContext.get_groups() can return, but they do not state the default preference order Python 3.15 applies when set_groups() is not called. Because the order determines which key agreement a server sees first, it matters for peers that prefer classical groups. Confirm the order on a real build by calling get_groups() and recording the output. Ask the CPython project or your distribution's packager to confirm the default in the release you deploy.
Python ssl docsCPython compatibility guidance
The sources cover CPython's OpenSSL updates and its signing practice, but they do not show that the project has published guidance on interoperating with older clients, peers or middleboxes during the hybrid transition. Without that guidance, the compatibility test plan falls to your own team. Ask the CPython project directly whether it plans such guidance, and check the Python 3.15 What's New page and the ssl module documentation for any later update before you rely on the current text.
What can go wrong when a hybrid group reaches an older peer
A hybrid key exchange in Python can fail in four distinct ways when it meets an older peer or middlebox, and only some of these are confirmed by the sources. The clearest risk is a handshake failure. A post-quantum hybrid group sends a larger key share in the ClientHello, and an older TLS stack or an inspection appliance may not parse it correctly, so the connection breaks instead of falling back. The sources do not document how any specific peer or middlebox behaves, so this needs testing against the actual devices in your path. Set up a test client using SSLContext.set_groups() with a hybrid group and connect to each server and proxy you depend on, recording whether the handshake completes.
The second risk runs in the opposite direction: the connection succeeds but quietly uses a classical group. If the peer does not offer a post-quantum group, the handshake negotiates a classical one, and nothing in the handshake reports this as an error. The Python 3.15 documentation provides SSLSocket.group(), which returns the group used for key agreement on a connection, and it requires OpenSSL 3.2 or later. Log that value on every test connection so you can see which group was actually used, not which one you requested. This check confirms the mechanism exists, but the sources do not say how often peers will fall back, so treat the result as something to measure in your own environment.
Two further risks come from the software stack itself. The ssl documentation warns that default protocol, option and cipher settings from create_default_context() may change to more restrictive values at any time without prior deprecation, so a Python upgrade can start rejecting peers that worked before. Pin the settings you rely on explicitly, and retest after each runtime change. Separately, the cryptography package ships its own bundled OpenSSL in its wheels, so a pip-installed cryptography may use a different OpenSSL from the one the ssl module is linked against. A group or algorithm that works in one module may be missing in the other, so confirm which OpenSSL version each module reports before you attribute a result to either.
Questions engineers ask about Python and older TLS peers
Is Python quantum safe when talking to older TLS peers?
No product or configuration can be called quantum safe on the basis of the sources on this page, and the sources do not describe any Python setup as compliant or certified. What the sources do show is that post-quantum key exchange in Python depends on the OpenSSL build it is linked against and on the groups both sides offer. Python 3.15 added SSLContext.set_groups() and SSLSocket.group(), so an engineer can see which key agreement group a connection actually used. Older peers that do not offer a post-quantum group will negotiate a classical group, so a connection can only use post-quantum key agreement when both ends support it. Confirm this by testing a real handshake against each peer you depend on.
Which Python and OpenSSL versions are needed for post-quantum groups?
The sources tie the feature set to two versions. set_groups() and get_groups() are new in Python 3.15, and the 3.15 What's New page says get_groups() requires OpenSSL 3.5 or later and SSLSocket.group() requires OpenSSL 3.2 or later. OpenSSL 3.5.0 added ML-KEM, ML-DSA and SLH-DSA and changed its default key shares to offer X25519MLKEM768 and X25519. Python's own builds move between OpenSSL releases, so check the OpenSSL version reported by your interpreter (for example with ssl.OPENSSL_VERSION) rather than assuming it from the Python version. Python 3.10 and later require OpenSSL 1.1.1 or newer for the ssl module.
Does enabling a post-quantum key exchange group cost extra?
The sources do not give any price, licence fee or effort figure for enabling a group, so none can be stated here. The cost components are the engineering time to test handshakes against each peer, the work to move to Python 3.15 or to a linked OpenSSL 3.5 or later where the current build lacks support, and any changes needed on older peers or middleboxes. Those costs are largely one-time, while ongoing costs come from keeping OpenSSL and Python patched and from retesting when peers change. Ask your vendors or your own platform team for an estimate based on the versions you run, and check that quotes state which OpenSSL build is assumed.
What breaks first when a post-quantum group meets an older peer?
The sources describe no specific failure, so treat the following as the points to test rather than known outcomes. The first thing to check is the handshake itself: a larger key share can push a ClientHello past a size limit that some older middleboxes or TLS stacks enforce. Next, check whether the peer and any inspection device accept the group at all, and whether the negotiated group falls back to a classical one. The Python ssl defaults can also change: the docs warn that create_default_context() settings may become more restrictive without prior deprecation, so a previously working connection can fail after an upgrade. Record the negotiated group with SSLSocket.group() during each test.
What should we ask a middlebox vendor before enabling post-quantum groups?
Ask whether the device passes TLS handshakes that offer post-quantum key shares, and whether it inspects or terminates those sessions. Ask which key agreement groups it supports and whether it can be set to pass unknown groups through without blocking them. Ask for the firmware or software version that tested this, and whether the vendor has published any statement on post-quantum support in its release notes. Also ask whether the device is configured with TLS 1.3 by default and how it handles a larger ClientHello. Record the vendor's answers with the version and date, because they can change with each release.
Can our team test this ourselves, or do we need outside help?
Your team can test this without outside help if it can run Python 3.15 or a build linked to OpenSSL 3.5 or later, and can reach each peer and middlebox in a test environment. Start by listing the peers the application depends on, then run handshakes from Python with set_groups() and read the result with SSLSocket.group(). Keep a table of peer, version, group offered, group negotiated and error seen. Outside help makes sense when many peers or inspection devices are involved, when vendors do not answer the middlebox questions, or when the results must be recorded for an audit. DeployOpen plans, tests and documents this kind of work in client infrastructure on a fixed scope agreed in writing before work starts, but it does not issue audit reports or attestations.
Does the cryptography package change the picture for older peers?
It can. The cryptography package ships wheels with its own bundled OpenSSL, so a pip-installed cryptography does not use the OpenSSL that the ssl module uses. Its changelog says ML-KEM and ML-DSA became available in wheels in cryptography 48.0.0 when using OpenSSL 3.5.0 or later, and the changelog I read mentioned no X25519MLKEM768 entry. The ssl module's behaviour is therefore a separate result from the cryptography package's behaviour, and each needs its own test. Check the bundled OpenSSL version for each package in the application's environment before drawing conclusions about the whole Python stack.
Where to check each Python compatibility claim
Before you rely on any statement about how Python behaves with older clients, peers or middleboxes, check it against the primary source for the exact release you run. The Python ssl docs describe the defaults of ssl.create_default_context(), the TLS 1.2 minimum since Python 3.10, the cipher list rules and the key agreement controls such as set_ecdh_curve(). The docs also warn that these default protocol, option and cipher settings may become more restrictive at any time without prior deprecation, so a connection that works today may behave differently after an upgrade. Record the Python version and the OpenSSL build it is linked against alongside each test result, because the ssl module's behavior depends on that build.
For anything new in the 3.15 line, check the Python 3.15 What's New page, which the project lists as the latest stable release, released 9 October 2026 (checked 2026-12-03). It describes SSLContext.set_groups(), SSLSocket.group() and SSLContext.get_groups(), and states that get_groups() requires OpenSSL 3.5 or later and SSLSocket.group() requires OpenSSL 3.2 or later. For the library behind those groups, read the OpenSSL 3.5 NEWS file, which records the 3.5.0 release of 8 April 2025, support for ML-KEM, ML-DSA and SLH-DSA, and the change to default key shares that offer X25519MLKEM768 and X25519. Confirm the OpenSSL version your Python build uses, since the What's New page ties those features to specific OpenSSL minimums.
Packaging and patch status need their own checks. The CPython OpenSSL update issue 156369 tracks the August 2026 move of the Windows builds and macOS installer to OpenSSL 3.5.8 on the 3.14 and 3.15 branches, and the CPython PR 158460, merged on 2026-09-30, updated the 3.15 macOS installer to OpenSSL 3.5.9. Separately, the cryptography changelog lists bundled OpenSSL 4.1.1 in cryptography 51.0.0 released 2026-12-01, and the cryptography installation docs explain that pip-installed wheels use their own bundled OpenSSL rather than the one the ssl module uses. Compare the OpenSSL version in each place, because a fix in one does not change the other.
How DeployOpen helps plan and test Python TLS changes
DeployOpen plans and tests changes to Python TLS settings in the client's own environment, starting from an inventory of the Python builds, OpenSSL links and peers involved. Work is fixed-scope and written out before it starts, so the client knows which clients and peers will be tested and what evidence comes back.
How we scope
- Inventory which Python versions, OpenSSL builds and cryptography wheels each service uses.
- List the clients, peers and middleboxes that must still complete handshakes after a hybrid change.
- Record in the written scope which settings are in play, such as set_groups() and minimum TLS version.
How we build
- Build a test harness that runs Python TLS clients and servers against representative peers.
- Compare negotiated groups and cipher suites before and after each configuration change.
- Test fallback behavior with older clients to confirm connections still succeed when hybrid groups are not offered.
How we hand over
- Deliver a dated compatibility report listing each tested peer, the Python and OpenSSL versions, and the result.
- Document the exact configuration applied, with the settings and their versions, so your team can repeat the tests.
- Walk your engineers through the test scripts and the open items that still need vendor confirmation.
How we support
- Ongoing support and continuous testing are available as a retainer when Python or OpenSSL versions change.
- Retesting covers each upgrade of the Python release, the OpenSSL build and the cryptography package.
- Ask the vendor for written confirmation of peer behavior, since the test results apply only to the versions tested.

