The eGenix.com pyOpenSSL Distribution includes everything you need to
get started with SSL in Python. It comes with an easy to use installer
that includes the most recent OpenSSL library versions in pre-compiled
form, making your application independent of OS provided OpenSSL libraries:
>>> eGenix pyOpenSSL Distribution Page
pyOpenSSL is an open-source Python add-on that allows writing SSL-aware networking applications as as certificate managment tools. It uses the OpenSSL library as performant and robust SSL engine.
OpenSSL is an open-source implementation of the SSL/TLS protocol.
This new release of the eGenix.com pyOpenSSL Distribution
This new release of the eGenix.com pyOpenSSL Distribution updates the
included OpenSSL version to the latest OpenSSL 1.0.1h version and adds a few more context options:
>>> import OpenSSL >>> import ssl Traceback (most recent call last): File "<stdin>", line 1, in <module> File "ssl.py", line 60, in <module> import _ssl ImportError: _ssl.so: undefined symbol: SSLv2_methodThe
ImportError
is the result of using the 0.13.5 version of the OpenSSL libs with an ssl module which was compiled against a system version
with SSLv2 support, effectively making the ssl module unusable.
To protect against SSLv2 and SSLv3 downgrade attacks, please make sure you setup the SSL context to disallow using SSLv2 and SSLv3, e.g.
context = SSL.Context(SSL.SSLv23_METHOD) context.set_options(SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3)
OpenSSL.__version__
is now updated to the distribution version rather than left at "0.13" as it was in previous releases. It now shows "0.13.6" for this release.import OpenSSL
" early to prevent Python from
loading the system OpenSSL libraries instead of the embedded ones.
Be sure to read the section Loading the embedded OpenSSL Libraries of the documentation for details on how to make sure that the embedded libraries are loaded.In addition to providing sources, we make binaries available that include both pyOpenSSL and the necessary OpenSSL libraries for all supported platforms: Windows x86 and x64, Linux x86 and x64, Mac OS X PPC, x86 and x64.
We have also added .egg-file distribution versions of our eGenix.com pyOpenSSL Distribution for Windows, Linux and Mac OS X to the available download options. These make setups using e.g. zc.buildout and other egg-file based installers a lot easier.
Please visit the eGenix pyOpenSSL Distribution page for downloads, instructions on installation and documentation of the package.
Before installing this version of pyOpenSSL, please make sure that you uninstall any previously installed pyOpenSSL version. Otherwise, you could end up not using the included OpenSSL libs.
For more information on the eGenix pyOpenSSL Distribution, licensing and download instructions, please write to sales@egenix.com.
Enjoy !
Marc-Andre Lemburg, eGenix.com