# gevent

# `gevent.ssl` – Secure Sockets Layer (SSL/TLS) module

This module provides SSL/TLS operations and some related functions. The API of the functions and classes matches the API of the corresponding items in the standard `ssl` module exactly, but the synchronous functions in this module only block the current greenlet and let the others run.

The exact API exposed by this module varies depending on what version of Python you are using. The documents below describe the API for Python 3, Python 2.7.9 and above, and Python 2.7.8 and below, respectively.

Warning

All the described APIs should be imported from `gevent.ssl`, and not from their implementation modules. Their organization is an implementation detail that may change at any time.

class `SSLObject`

  The gevent-cooperative SSL object. See the version-specific documentation for details.

- Python 3 interface
- Python 2.7.9 and above interface (including PyPy 2.6.1 and above)
- Python 2.7.8 and below interface

Next page: `gevent._ssl3` – SSL wrapper for socket objects on Python 3