Skip to main content

TLS-capable transport using OpenSSL for asyncio

Project description

https://travis-ci.org/horazont/aioopenssl.svg?branch=devel https://coveralls.io/repos/github/horazont/aioopenssl/badge.svg?branch=devel

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.

Documentation

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

Project details


Download files

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

Source Distribution

aioopenssl-0.5.0.tar.gz (14.8 kB view details)

Uploaded Source

File details

Details for the file aioopenssl-0.5.0.tar.gz.

File metadata

  • Download URL: aioopenssl-0.5.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for aioopenssl-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5b54b365a01ef3fe784b516f7e4c95c4f1e09fc93c33fd706c77808631d304c8
MD5 b06f8cf0165aa19913932ef2be4e5844
BLAKE2b-256 b74d39306f376cb17d644a7d4da59e8b0a43db8d4af4367d6beda5001d9aaa60

See more details on using hashes here.

Supported by

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