Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
It's the Python 3.4 standard ssl
module API implemented on top of
pyOpenSSL::
import backports.ssl as ssl
import socket
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
context.verify_mode = ssl.CERT_REQUIRED
conn = context.wrap_socket(socket.socket(socket.AF_INET))
conn.connect(('google.com', 443))
print conn.getpeercert()
conn.close()
Because the latest web technologies should be available to those running older versions of Python.
PEP 466
_?If you're on Python 2.7, then probably. But PEP 466 doesn't cover Python 2.6,
3.2, or 3.3, and the ssl.RAND_*()
functions are explicitly out of scope.
This package supports it all.
Monkey-patching support is included a la gevent
_::
import backports.ssl.monkey as monkey
import requests
monkey.patch()
requests.get('https://google.com')
AttributeError
\ s for newer features?Like the standard ssl
module, certain attributes will not be available if
your OpenSSL does not support them. See Installing OpenSSL
_ for instructions.
ssl
test suite... _PEP 466
: http://legacy.python.org/dev/peps/pep-0466
.. _gevent
: http://gevent.org
FAQs
The Python 3.4 standard `ssl` module API implemented on top of pyOpenSSL
We found that backports.ssl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.