Skip to main content

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.

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.1.0.tar.gz (9.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: aioopenssl-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aioopenssl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 770727eb1680116150a49e6346930cf3a37178ba1ae7c6d819d1a63e5df0dada
MD5 0fdb4d8df7150f3205d059638b8346a5
BLAKE2b-256 3a2ba408ccb7c3128ef08e3d5290cd0500d5b42ac6b75e2a56dad1b0b0be66a3

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