Which parts of Python use cryptography, and what to record for each
Python uses cryptography in four places, and an inventory should record each one separately: the ssl module, which uses whichever OpenSSL build the interpreter is linked against; hashlib, which uses that OpenSSL where it is available; the third-party cryptography package, which ships its own bundled OpenSSL when installed with pip; and the way CPython releases are packaged and signed. Start here, before any question about dependencies, support or upgrades, because each later answer depends on which of these components a given system actually runs. The ssl module documentation states that since Python 3.10 the module requires OpenSSL 1.1.1 or newer, so the TLS versions, cipher suites and certificate algorithms a Python process offers are determined by that library.
For each interpreter, record the Python version, the OpenSSL build it is linked against, and whether that build runs in FIPS mode. The platform or application owner who runs the interpreter usually holds this detail, and the security lead records it in the inventory. The hashlib documentation says algorithms may be missing or blocked in a FIPS-compliant build, or when OpenSSL FIPS mode excludes them, so confirm which digests each host actually provides. Since Python 3.12, hashlib falls back to a bundled HACL* implementation for MD5, SHA1, SHA2 or SHA3 when the linked OpenSSL lacks them, so record the source of each digest your applications call. The cryptography package needs its own line for every virtual environment: its changelog lists bundled OpenSSL 4.1.1 in version 51.0.0, released 2026-12-01, and one host can run two OpenSSL versions at the same time.
Record the CPython release source as well. PEP 761 deprecates PGP signatures for CPython releases starting with 3.14 and makes Sigstore the only signing method for new release series. The Python 3.15.1 release page, dated Oct. 21, 2026, lists a .sigstore file beside each download, so confirm that your build pipeline verifies that file and records the release it verified. A verified installer shows where the interpreter came from but does not show which OpenSSL it links. The CPython tracker shows the Windows builds and macOS installer moving to OpenSSL 3.5.8 in the August 2026 update, and a pull request merged on 2026-09-30 updated the 3.15 macOS installer to OpenSSL 3.5.9. Write the answer as one row per interpreter, one per cryptography install and one per release source, with the date you checked each.
Which Python components hold cryptography in your environment
This table lists the Python components that hold cryptography in a deployment, one row per area, with what each protects, its algorithm family, whether it relies on public-key algorithms, and where it is set. Read the public-key column as an inventory question: yes marks an area that needs the key exchange and signature review. The main takeaway is that TLS, certificate checks and the cryptography package depend on public-key algorithms, hashlib does not, and the OpenSSL build behind each component sets what is available.
| Area | What it protects and algorithm family | Depends on public-key algorithms | Where it is configured |
|---|---|---|---|
| TLS in the ssl module | Encrypted client and server connections; ECDH key agreement, RSA or ECDSA certificates, AES-GCM and ChaCha20 ciphers | Yes. Key agreement and certificate signatures use public-key algorithms through the linked OpenSSL build | ssl.create_default_context(), SSLContext.set_ciphers(), minimum_version, and set_groups() in Python 3.15 |
| Certificate verification and trust stores | Confirms that a peer certificate chains to a trusted CA before a connection is accepted | Yes. Chain checks verify RSA or ECDSA certificate signatures | verify_mode, CA loading and verify flags; create_default_context() sets these by default |
| Hashing in hashlib | Integrity digests from the MD5, SHA1, SHA2 and SHA3 families, using OpenSSL where available | No. Hash functions do not use public-key algorithms | hashlib constructors; OpenSSL FIPS settings in the build can remove algorithms |
| Keys and X.509 in the cryptography package | Key generation, certificates, CSRs and CRLs; RSA keys, plus ML-KEM and ML-DSA in newer releases | Yes. The RSA docs recommend 2048 or 4096 bit keys for new keys; 1024 bits and below are considered breakable | Application code; pip-installed wheels use their own bundled OpenSSL, separate from the ssl module |
| Release and installer signing | Checking that CPython release files are authentic; Sigstore signatures for 3.14 and 3.15 | Yes, signature checks use public keys. Confirm the signature algorithm with the project before recording it | Set by the project; verify each download against its .sigstore file (PGP deprecated from 3.14) |
| Packaging channel for dependencies | Installing packages such as cryptography from PyPI and checking their contents | Yes for transport. Index downloads use TLS through the ssl module's OpenSSL build. Confirm the index used | pip configuration, index URL and mirror settings; confirm the index used in each environment |
| Management access | Administrative access to tools that run Python; not documented for Python itself | Not documented for Python itself. Confirm for each deployment | Confirm for each deployment whether any tool exposes an administrative interface |
| Certificate and key storage (files, keystores, HSMs) | Where private keys and certificates sit at rest and who can read them | Not documented by the project. Confirm which keys the application holds | Not documented by the project; confirm in the application |
Which TLS settings in Python's ssl module choose its algorithms
Python's ssl module relies on the OpenSSL build it is linked against for TLS algorithms. A small set of SSLContext settings decides which protocol versions, cipher suites, key agreement groups and signature algorithms a connection may use. The four cards follow the order in which a handshake reaches these settings, and each one names the Python and OpenSSL versions it depends on.
Protocol versions and range
Since Python 3.10, TLS 1.2 is the minimum for PROTOCOL_TLS, PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. The range is set on each SSLContext through minimum_version and maximum_version, using values such as ssl.TLSVersion.TLSv1_2 and ssl.TLSVersion.TLSv1_3. A context built with a lower minimum or a higher maximum offers different handshake versions to peers, so record both values for every client and server. Also note which OpenSSL build each Python interpreter loads, because the module requires OpenSSL 1.1.1 or newer.
Python ssl docsCipher suites for TLS 1.2 and 1.3
ssl.create_default_context() selects high encryption cipher suites, excludes RC4 and unauthenticated suites, and disables SSLv2 and SSLv3. For TLS 1.2 and earlier, SSLContext.set_ciphers() takes an OpenSSL cipher list string. Since Python 3.10, the default list is limited to secure AES and ChaCha20 suites with forward secrecy at security level 2, which rejects RSA and DH keys under 2048 bits and ECC keys under 224 bits. All AES-GCM and ChaCha20 TLS 1.3 suites are enabled by default, and SSLContext.set_ciphersuites() in Python 3.15 restricts them. Check the effective cipher list at runtime.
Python ssl docsKey agreement groups
Before Python 3.15, SSLContext.set_ecdh_curve() is the control for key agreement. The docs use prime256v1 as the example and state that it does not apply to client sockets. Python 3.15 adds set_groups(), which takes a string in the OpenSSL group list format, accepts several groups, and covers finite-field and post-quantum groups as well as ECDH curves. get_groups() needs OpenSSL 3.5 or later, and SSLSocket.group() needs OpenSSL 3.2 or later. Use the group negotiated on each connection as the evidence for your key agreement inventory entry.
Python 3.15 What's NewCertificate verification and signature algorithms
For server authentication, ssl.create_default_context() sets verify_mode to CERT_REQUIRED and loads CA certificates, using load_default_certs() when none are supplied. Since Python 3.13, the default verify flags include VERIFY_X509_PARTIAL_CHAIN and VERIFY_X509_STRICT. In Python 3.15, set_client_sigalgs(), set_server_sigalgs() and ssl.get_sigalgs() restrict certificate and handshake signature algorithms from Python code. The docs warn that default protocol, option and cipher settings may become more restrictive at any time without prior deprecation, so record explicit values for each service.
Python ssl docsHow a Python TLS connection reaches OpenSSL and its key exchange
This illustrative diagram traces three paths from application code. The ssl path goes through the ssl module to the OpenSSL that the Python build is linked against, which sets the key agreement group (ECDH curves by default before Python 3.15) and the RSA or ECDSA certificate signatures. The cryptography path goes to the package's own bundled OpenSSL, which in cryptography 51.0.0 is OpenSSL 4.1.1, and reaches RSA keys and the ML-KEM and ML-DSA classes. The hashlib path uses the linked OpenSSL where available and a HACL* fallback for MD5, SHA1, SHA2 or SHA3 from Python 3.12. The two OpenSSL copies can differ, so record each one separately in your inventory with its version.
Illustrative map of the ssl, cryptography and hashlib paths to OpenSSL.
Which certificates and keys Python uses, by use
A server certificate and its private key identify the application to clients during the TLS handshake. The application loads them into the SSL context it uses to accept connections, and the ssl module performs the key exchange and certificate signature operations through the OpenSSL build it is linked against.
- Where it is stored: usually a file on the host, a secret injected into the process, or an HSM or TPM where the deployment provides one. The project does not document storage for Python applications, so confirm the location in your deployment.
- How it is issued: from the internal CA or a public CA, through a certificate request that the PKI owner processes. Confirm with the PKI owner which team creates the request.
- Who rotates it: the application owner, or the platform team that runs the service. Confirm the rotation steps and whether the service must restart to load a new certificate.
- Key exchange: before Python 3.15,
set_ecdh_curve()is the control for the curve used in key agreement, and the Python ssl docs use prime256v1 as the example. Python 3.15 addsset_groups()for the groups allowed in key agreement. - Library dependency: since Python 3.10 the
sslmodule requires OpenSSL 1.1.1 or newer, and the algorithms available depend on the linked build. Record the Python and OpenSSL versions next to each certificate in the inventory.
Check the key type, key size and signature algorithm of each live server certificate against the Python and OpenSSL versions the service actually runs.
In mutual TLS, the client presents its own certificate and private key during the handshake, and the server verifies them against its trust store. The same ssl module and OpenSSL build handle both sides, so client keys carry the same build dependency as server keys. Client identities are easy to miss in an inventory because they often belong to batch jobs, workers and sidecars rather than to a public-facing service.
- Where it is stored: a file the client process reads, a keystore the application opens, or an HSM or TPM where the deployment provides one. The project does not document storage for Python applications, so record the choice for each client.
- How it is issued: by the PKI owner, often under a client authentication profile separate from the server profile. Confirm the profile, the lifetime and the approver with the PKI owner.
- Signature algorithms: Python 3.15 adds
set_client_sigalgs(),set_server_sigalgs()andssl.get_sigalgs(), so certificate and handshake signature algorithms can be restricted from Python code. Earlier versions do not offer these methods. - Who rotates it: the owner of the workload for service identities, and the identity team for user identities. Confirm the owner for each identity in the deployment.
- Inventory scope: list every process that presents a client certificate, including scheduled jobs and helper containers, and note which PKI profile issued each one.
Confirm which client identities each service presents and which team can replace each one when it expires or is compromised.
A trust store is the set of certificate authorities that an application accepts when it verifies a peer. For server authentication, the Python ssl docs say create_default_context() sets the verify mode to CERT_REQUIRED and loads CA certificates, using load_default_certs() when the application does not give its own. The contents of the default store therefore depend on the platform and the build, and they can differ between hosts and images.
- Default store: when no store is given,
load_default_certs()loads the default CA certificates. Confirm the contents on each host or container image, because a host update can change them. - Named store: when the application names its own CA file, directory or data, that store is used in place of the default. Confirm who created the store and who maintains it.
- Verification flags: since Python 3.13, the default verify flags include VERIFY_X509_PARTIAL_CHAIN and VERIFY_X509_STRICT. Test the service after changing either the store or the Python version.
- Where it is stored: CA certificates are public, so they are usually files in the image or a managed bundle. The project does not document storage for Python applications. CA private keys should not be in the application's store, and the PKI owner keeps them.
- Who updates it: the platform or image team for system defaults, and the application owner for named stores. Confirm the update path that runs after a CA is added or retired.
Confirm for each service whether it uses the default store or a named one, and who updates the CA set when a CA changes.
Application code can generate keys with the cryptography package, for example RSA keys for a signing step, a test service or a local tool. The package installed from pip ships its own bundled OpenSSL, so the algorithms and key generation come from that build, separate from the OpenSSL the ssl module uses. A generated key exists only as long as the application keeps it, so where it is written is a decision the team must record.
- Key size: the cryptography RSA docs say
key_sizemust be at least 512, that keys of 1024 bits and below are considered breakable, and that 2048 or 4096 bits are recommended for new keys. - Public exponent: the same documentation recommends a
public_exponentof 65537. - Bundled OpenSSL: the cryptography changelog lists bundled OpenSSL 4.1.1 in cryptography 51.0.0, released 2026-12-01. Record the installed cryptography version for each image or environment that generates keys.
- Where it is stored: the project does not document storage for Python applications. Record whether the key is written to a file, a keystore, an HSM or a TPM, and who can read it.
- Issuance and rotation: a generated key is not a certificate. A certificate for it comes from the PKI owner, and the application owner rotates the key and any certificate made from it. Confirm both steps in the deployment.
For every key the code generates, confirm the key size, the exponent, the storage location and the cryptography version used to create it.
Who can change the signing, OpenSSL and wheel versions Python ships with
Four parties control the Python artifacts most teams install: the CPython release team, the python.org installer builders, the cryptography maintainers, and Linux distribution or container maintainers. Each one controls a different part of the signature, OpenSSL and wheel versions that your ssl module and cryptography package depend on. Check the responsible party for each item before you record a version in your inventory.
CPython release signing
The CPython release team signs each release. PEP 761 deprecates PGP signatures starting with Python 3.14 and makes Sigstore the only signing method for new release series. The 3.15.1 release page, dated Oct. 21, 2026, lists a .sigstore file beside each download. A valid signature confirms who built the artifact, not which OpenSSL it links, so record the OpenSSL version the installed interpreter reports. Your team controls its own verification step, and the release team controls what it signs.
python.org Windows and macOS builds
The CPython release team builds the python.org installers for Windows and macOS, and the CPython tracker records the OpenSSL version each branch uses. The tracker shows OpenSSL 3.5.8 on the 3.14 and 3.15 branches for the August 2026 update. A pull request merged on 2026-09-30 moved the 3.15 macOS installer to OpenSSL 3.5.9. The same minor Python version can ship with different OpenSSL builds, so check the installer date and the OpenSSL version your interpreter reports.
cryptography package wheels
The cryptography maintainers publish wheels for macOS, Windows and Linux that are statically linked, so the package carries its own bundled OpenSSL, separate from the one the ssl module uses. Release 51.0.0, dated 2026-12-01, bundles OpenSSL 4.1.1. The bundled version changes only with a new cryptography release, so pin the version in your lockfile and read the changelog before you upgrade. Your team chooses when to upgrade, and the maintainers choose what each release contains.
cryptography installation docsLinux distribution or container builds
Python packages from a Linux distribution or a container base image link against the OpenSSL that the distribution or image maintainer ships. That version can differ from the python.org installer and from the cryptography wheel. Which OpenSSL these builds link is not stated on this page, so confirm it with the distribution or image maintainer. Ask for the OpenSSL package version, the Python build date and how quickly security fixes reach the image.
What to record for each Python cryptographic item
This table lists the fields to record for each Python item that uses cryptography, and where each value comes from. Record one set of fields per environment, because the same interpreter can run in several virtual environments or containers, each with its own ssl build and cryptography version. The main takeaway: the ssl module and the cryptography package can link different OpenSSL builds, so record both.
| Field | What to record | Where to get it |
|---|---|---|
| Product and interpreter version | Product: Python, with the full version and patch level, for example 3.15.1 released Oct. 21, 2026 | Run python --version on the host, or read sys.version in the running process. Release dates are on the python.org release page. |
| Linked OpenSSL version (ssl module) | The OpenSSL version the ssl module is linked against. Python 3.10 and later require OpenSSL 1.1.1 or newer. | The OPENSSL_VERSION value in the ssl module of the running interpreter. Record it per environment. |
| cryptography version and bundled OpenSSL | Installed version and its bundled OpenSSL, separate from the ssl module's OpenSSL (51.0.0 lists 4.1.1) | Installed package metadata for the version, then the cryptography changelog entry for that release. |
| Owner | Team or named person accountable for the interpreter, the package and the connection | Asset register or CMDB entry, confirmed with the application owner. |
| Location | One record per host, container image or virtual environment, since one interpreter can run in several | Virtual environment path, container image tag and host name, taken from the deployment or the running process. |
| Protocol, algorithm and key size | Negotiated TLS version, cipher suite, key agreement group, and certificate key type and size | Live connection inspection, or the SSLContext settings in code and in configuration files. |
| Certificate issuer and expiry | Issuer name, subject, and the not-after date for each certificate the application presents or trusts | The certificate file, the peer certificate chain, or the certificate store the context loads. |
| Configurable in code or fixed by vendor | Whether each setting can be changed in application code (for example set_ciphers or minimum_version) or is fixed in the build | Application source and the ssl documentation. Defaults of create_default_context may change without prior deprecation. |
| Confidentiality period | How long the data the connection protects must stay confidential, as set by the data owner | Data owner's classification and retention requirement. The scan does not set this value. |
Which Python items depend on public-key algorithms and fall in migration scope
Public-key algorithms appear in three places, and each needs its own inventory entry. First, TLS key agreement runs through the OpenSSL build that the ssl module is linked against. Before Python 3.15, that agreement uses ECDH curves by default, and finite-field Diffie-Hellman only where a configuration enables it. The default cipher list keeps OpenSSL security level 2, which prohibits RSA and DH keys under 2048 bits and ECC keys under 224 bits. Second, certificate signatures use RSA or ECDSA keys in the certificates that ssl presents and validates. Third, keys created in code with the cryptography package include its RSA key classes, plus the MLKEM768, MLKEM1024, MLDSA44, MLDSA65 and MLDSA87 classes added in cryptography 47.0.0. A class being present does not state support: these classes raise UnsupportedAlgorithm when the backend lacks the algorithm, so record the result for each installed build.
Other items depend on symmetric algorithms and hashes, and they belong in the inventory too. TLS 1.3 enables AES-GCM and ChaCha20 cipher suites by default, and the default TLS 1.2 list is limited to secure AES and ChaCha20 ciphers with forward secrecy. The hashlib module uses OpenSSL where available and, since Python 3.12, falls back to a HACL* implementation for MD5, SHA1, SHA2 or SHA3 digests that the linked OpenSSL lacks. Digests can also be missing or blocked in a FIPS-compliant build or when OpenSSL FIPS mode excludes them. Choosing a cipher suite does not remove the key exchange dependency. Every TLS connection still performs key agreement before the symmetric cipher carries data, so the ECDH or DH group in use stays in scope. Python 3.15 adds SSLContext.set_ciphersuites() to restrict TLS 1.3 ciphers, and that setting does not change the groups used for key agreement.
To scope the work, record the Python version, the OpenSSL version reported by the ssl module, and the cryptography version with its bundled OpenSSL for each runtime you operate. The cryptography wheels carry their own OpenSSL, so a fix to the system OpenSSL does not change what the package uses, and the reverse holds too. Confirm both in your environment before you record an answer. The sibling pages cover the RSA and elliptic-curve dependencies in detail, the support status of post-quantum algorithms in Python, and what an upgrade needs. Start with the RSA and elliptic-curve page to list each connection, login and signature that uses those keys.
How to collect Python inventory data from your own systems
This sequence walks an engineer through the host-level evidence needed for a Python cryptographic inventory: interpreters, OpenSSL builds, cryptography wheels, code and configuration, certificates, negotiated connections and owner input. Each step names what to record, so the result can be reviewed against the same fields later.
List every interpreter and virtual environment
Run this on each host and in each build pipeline. List every Python interpreter, including system, distribution, container and manually installed builds, and every virtual environment created from them. Record the full version string for each, including the patch level, and confirm that patch level against the python.org release notes for its branch. The Python 3.15 What's New page names 3.15 as the latest stable release, so mark every older interpreter for follow-up. Done when the list has one row per interpreter and environment, with its path, owner and confirmed patch level.
Record the OpenSSL build behind each ssl module
For each interpreter, run
ssl.OPENSSL_VERSIONand record the version string it reports. Note whether that OpenSSL comes from the operating system, a distribution package or a bundle inside the Python build, using the build notes or package metadata. The ssl module requires OpenSSL 1.1.1 or newer since Python 3.10, so flag any build below that. The TLS and certificate algorithms Python offers depend on this library, so keep the value in the same row as its interpreter. Done when every interpreter row names one OpenSSL version and its source.Read the cryptography version in each environment
In each virtual environment, record the installed cryptography version from pip or from your package manifest. Then look up the OpenSSL version bundled with that release in the cryptography changelog. Pip-installed cryptography wheels for macOS, Windows and Linux carry their own statically linked OpenSSL, so this value can differ from the one the ssl module reports on the same host. Record both values side by side in the environment row. Done when each environment shows its cryptography version, its bundled OpenSSL and the ssl module's OpenSSL.
Search code and configuration for crypto calls
Search application code, deployment templates and configuration repositories for these names: create_default_context, set_ciphers, set_ecdh_curve, set_groups, minimum_version, load_default_certs, hashlib, and generate_private_key with a key_size argument. Include vendored or copied code and framework settings. Keep each hit with its file, line and the environment it runs in. Mark hits that set a cipher list, curve, group or minimum version explicitly, and mark separately the hits that rely on defaults, since the ssl docs warn that create_default_context settings may become more restrictive without prior deprecation. Done when every hit appears once with its file, environment and mark.
Read issuer and expiry from every certificate
Using your standard certificate tooling, read the issuer, subject, key type and expiry date from every certificate file that the Python applications load. Include certificates in trust stores, mounted secrets and client configurations, not only the server certificates your team deploys. Record the signature algorithm where your tooling shows it. Done when each certificate file has one row with its path, issuer, expiry date and key type, and every file an application loads appears on the list.
Observe negotiated key agreement on test connections
On a test connection from the same host and interpreter used in the earlier steps, record the key agreement group the server negotiates. Use SSLSocket.group(), which requires OpenSSL 3.2 or later, so hosts on older builds need a newer OpenSSL or a different check. Test only endpoints your organization owns or is authorized to test. This records key agreement only, not the certificate signature, so keep the two in separate columns. Done when each connection has a row naming the endpoint, the Python build and the reported group, or a note that the build cannot report it.
Ask owners and vendors what the host cannot show
Ask the application owners and the vendors of any bundled library what the host cannot show. Typical questions are whether an HSM, cloud KMS or keystore holds keys the Python code calls, whether a bundled library runs its own TLS stack, and which signing keys sit outside the host. The platform or security engineer leads this step and collects written answers. Record the person and date for each answer. Done when every application row has a named owner, and every bundled library that performs its own cryptography has a vendor answer on file.
Record the inventory and set a review date
Store the rows from all steps in one inventory file with a version number, the collection date and the name of the person who collected the data. Name the inventory owner and set a review date on the record. Re-run the collection after any Python patch release, OpenSSL update or cryptography upgrade, because each can change the answers in these steps. Done when the inventory is stored with your other security evidence, the review date is on the record, and the owner has confirmed each row.
What engineers and vendor-risk reviewers ask about Python's cryptographic inventory
Is Python quantum safe for the TLS and keys it uses today?
No. This entry does not establish that any Python deployment is quantum safe, and nothing here should be recorded as a compliance or security conclusion. It records what each Python item uses: the ssl module depends on the OpenSSL build it is linked against, the cryptography package ships its own bundled OpenSSL when installed from wheels, and hashlib may use OpenSSL or a fallback. Whether a given key exchange or signature is post-quantum depends on the version, the linked library and the settings in use. Those questions sit on sibling pages about support, configuration and the upgrade path. Use this page to build the list of components and public-key uses, then check each one against those pages.
Which Python version should our inventory record?
Record the exact interpreter version in use for each application, and use Python 3.15 as the reference for the newest ssl features. The Python 3.15 What's New page calls 3.15 the latest stable release and gives its release date as 9 October 2026. The 3.15 additions to ssl, such as set_groups(), set_sigalgs controls and get_groups(), exist only in that release, so systems on 3.14 or earlier will not show them. Some of these functions also need a minimum OpenSSL version, so record the OpenSSL build for each interpreter alongside its Python version. The ssl behavior you observe follows the linked library as well as the interpreter.
Does a Python cryptographic inventory cost extra?
Yes, the work takes staff time, so ask for a written quote that states the effort before work starts. The cost comes from three components: staff time for each interpreter and each application that calls ssl, hashlib or cryptography, tooling used to find those calls and record versions, and the number of environments such as build hosts, containers and production servers, since each may run a different Python and OpenSSL build. Most of the effort is one-time for the first pass and then recurs when interpreters, wheels or OpenSSL builds change. Effort falls when versions are pinned and rises when dependencies are undocumented. Ask any provider for a fixed-scope quote that lists each component, the environments covered and the deliverables. DeployOpen agrees scope, deliverables and timelines in writing before work starts and does not publish a price list.
What breaks if Python's default TLS settings change?
Connections fail when a default changes under a peer that depends on the old value, so record explicit settings. The ssl documentation warns that the default protocol, options and cipher settings of ssl.create_default_context() may change to more restrictive values at any time without prior deprecation. A client or server that accepts today's defaults could then stop connecting to an older peer after an interpreter upgrade. Set minimum_version on each SSLContext, state verify_mode and any cipher choice made with set_ciphers() in code or configuration, and on Python 3.15 record set_ciphersuites() for TLS 1.3. Then test each affected connection after every interpreter or OpenSSL change.
What should we ask our Python distribution or vendor?
Ask these questions in writing and keep the answers with the inventory record:
- Which OpenSSL version each interpreter is linked against, since the ssl module's TLS and certificate algorithms follow that library.
- Whether the cryptography package is installed from wheels, which carry their own bundled OpenSSL, and which version that bundled library is.
- Where private keys are stored: files on the host, a key management service or a hardware security module.
Also ask which build options and FIPS settings apply, because hashlib algorithms may be missing or blocked in a FIPS-compliant build. Record each answer against the specific interpreter build and application it covers.
Can our own team complete this inventory without outside help?
Yes, a first pass is within reach of an internal team that works through the steps on this page. List each interpreter and its OpenSSL build, list each application that imports ssl, hashlib or cryptography, record the explicit settings each one uses, and note where its keys are stored. The teams that own the applications often hold part of this already, so the work is mostly finding the places where defaults are relied on. Outside help is useful for a wider count of environments, for checking results across many hosts or for ongoing review. If you engage a provider, scope the work in writing before it starts, with the environments, deliverables and timeline agreed in advance. DeployOpen works to fixed scopes agreed in writing, and ongoing support is available as a retainer.
Does the cryptography package use the same OpenSSL as ssl?
Not necessarily, so record both. The ssl module uses the OpenSSL build that the interpreter is linked against. A cryptography package installed with pip from its published wheels uses the OpenSSL bundled inside that wheel. The cryptography 51.0.0 changelog entry, dated 2026-12-01, lists bundled OpenSSL 4.1.1, so the two components can report different OpenSSL versions on the same host. This matters because the algorithms each component can offer follow its own library. A patch to the system OpenSSL does not by itself change what cryptography uses, so record the cryptography version and its bundled OpenSSL alongside the interpreter's OpenSSL build.
How DeployOpen supports a Python cryptographic inventory
DeployOpen scopes the inventory of cryptography in your Python estate across three layers: the ssl module and the OpenSSL build it links against, the cryptography package with its own bundled OpenSSL, and the packaging that delivers both. Each layer is recorded with the version and build that applies to it. Most engagements are fixed-scope, with the scope agreed in writing before work starts.
How we scope
- The written scope names the hosts, containers, images and build pipelines that run Python in your environment.
- It lists which Python versions, OpenSSL builds and cryptography releases are in scope for the inventory.
- Engagements are fixed-scope, and ongoing support and upgrades are available as a retainer.
How we build
- Each ssl context is traced to its settings: protocol range, cipher list, key agreement settings and certificate verification mode.
- The OpenSSL version reported by the ssl module is recorded separately from the bundled OpenSSL in cryptography.
- RSA and elliptic-curve key use in cryptography calls is recorded with key sizes and callers.
How we hand over
- The deliverable is a written inventory of each Python runtime, its linked OpenSSL and its installed cryptography version.
- Packaging evidence covers pip sources, wheel tags and lock files for each cryptography install.
- Each finding is dated, names its component and version, and lists the owner for follow-up.
How we support
- Post-upgrade checks confirm that the ssl settings and cryptography versions match the inventory.
- Ongoing support covers Python upgrades, OpenSSL updates and cryptography releases as they ship.
- Ask your DeployOpen contact to confirm which of these items your retainer includes before work starts.

