Registry / security / backports-ssl

backports-ssl

JSON →
library0.0.9pypypiunverified

Provides the Python 3.4 standard ssl module API implemented on top of pyOpenSSL for older Python versions (2.x, 3.0–3.3). Current version 0.0.9, unmaintained.

pip install backports-ssl
INSTALL
IMPORT
SIG · BACKPORTS-SSL
B
backports-ssl
securitypythonv0.0.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ssl
import backports.ssl
import backports.ssl as ssl

Create an SSL connection using the backported ssl module.

import os import backports.ssl as ssl hostname = 'example.com' port = 443 context = ssl.create_default_context() conn = context.wrap_socket(socket.socket(), server_hostname=hostname) conn.connect((hostname, port)) print(conn.version()) conn.close()
Debug
Known issues
breakingbackports-ssl is unmaintained and does not support Python 3.4+ (which already has the modern ssl module).
fix
Drop this library and use Python's built-in ssl module.
affects: >=3.4
gotchaThe package name on PyPI is 'backports-ssl' but the import is 'backports.ssl'.
fix
Install with `pip install backports-ssl` and import as `import backports.ssl as ssl`.
affects: all
deprecatedPython 2.7 is end-of-life; this library is no longer maintained and may have unpatched security issues.
fix
Migrate to Python 3.6+ and use the standard library ssl module.
affects: all
Upgrade
Version history
0.0.9latest on PyPI · released Dec 9, 2015
Audit
Dependencies
pyOpenSSLrequiredRequired backend for SSL operations
Agent activity
19 hits · last 30 days
node
18
Resources
backports-ssl — pip install backports-ssl · libregistry