Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

TLS-capable transport using OpenSSL for asyncio

Project description

aioopenssl provides a asyncio Transport which uses PyOpenSSL instead of the built-in ssl module.

The transport has two main advantages compared to the original:

  • The TLS handshake can be deferred by passing use_starttls=True and later calling the starttls() coroutine method.

    This is useful for protocols with a STARTTLS feature.

  • A coroutine can be called during the TLS handshake; this can be used to defer the certificate check to a later point, allowing e.g. to get user feedback before the starttls() method returns.

    This allows to ask users for certificate trust without the application layer protocol interfering or starting to communicate with the unverified peer.

Note

Use this module at your own risk. It has currently 0 (in words: zero) test coverage; it has been exported from aioxmpp on request, where it undergoes implicit testing. If you find bugs, please report them. If possible, add regression tests while you’re at it.

If you find security-critical bugs, please follow the procedure announced in the aioxmpp readme.`

Documentation

Official documentation can be built with sphinx and is available online on our servers.

Project details


Release history Release notifications

This version
History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
aioopenssl-0.3.1.tar.gz (13.3 kB) Copy SHA256 hash SHA256 Source None May 16, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page