Skip to main content

Python wrapper module around the OpenSSL library

Project description

Stable Docs Build status Test coverage

High-level wrapper around a subset of the OpenSSL library. Includes

  • SSL.Connection objects, wrapping the methods of Python’s portable sockets

  • Callbacks written in Python

  • Extensive error-handling mechanism, mirroring OpenSSL’s error codes

… and much more.

You can find more information in the documentation. Development takes place on GitHub.

Discussion

If you run into bugs, you can file them in our issue tracker.

We maintain a cryptography-dev mailing list for both user and development discussions.

You can also join #cryptography-dev on Freenode to ask questions or get involved.

Release Information

17.0.0 (2017-04-20)

Backward-incompatible changes:

none

Deprecations:

none

Changes:

  • Added OpenSSL.X509Store.set_time() to set a custom verification time when verifying certificate chains. #567

  • Added a collection of functions for working with OCSP stapling. None of these functions make it possible to validate OCSP assertions, only to staple them into the handshake and to retrieve the stapled assertion if provided. Users will need to write their own code to handle OCSP assertions. We specifically added: Context.set_ocsp_server_callback, Context.set_ocsp_client_callback, and Connection.request_ocsp. #580

  • Changed the SSL module’s memory allocation policy to avoid zeroing memory it allocates when unnecessary. This reduces CPU usage and memory allocation time by an amount proportional to the size of the allocation. For applications that process a lot of TLS data or that use very lage allocations this can provide considerable performance improvements. #578

  • Automatically set SSL_CTX_set_ecdh_auto() on OpenSSL.SSL.Context. #575

  • Fix empty exceptions from OpenSSL.crypto.load_privatekey(). #581

Full changelog.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyOpenSSL-17.0.0.tar.gz (167.1 kB view details)

Uploaded Source

Built Distribution

pyOpenSSL-17.0.0-py2.py3-none-any.whl (51.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyOpenSSL-17.0.0.tar.gz.

File metadata

  • Download URL: pyOpenSSL-17.0.0.tar.gz
  • Upload date:
  • Size: 167.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyOpenSSL-17.0.0.tar.gz
Algorithm Hash digest
SHA256 48abfe9d2bb8eb8d8947c8452b0223b7b1be2383b332f3b4f248fe59ef0bafdd
MD5 0704ca95106960375cfe78259453094a
BLAKE2b-256 9f3280fe4fddeb731b7766cd09fe0b2032a91b43dae655e216792af2a6ae3190

See more details on using hashes here.

File details

Details for the file pyOpenSSL-17.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyOpenSSL-17.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0f78204fc2e128dd65ceca25b9f41cb0132e7cf690600f0ef43eddd023d7ec72
MD5 16f2282d0120962596b9fac334498e4e
BLAKE2b-256 8cb70048adbf09ad93f571e70fb3100e696d4711cdcbfe38161690d716a5ed35

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page