Skip to main content

Log SSL/TLS keys for decrypting SSL/TLS connections

Project description

PyPI Documentation Status

This is an implementation of the SSLKEYLOGFILE facility, available in Firefox and Chromium/Google Chrome, that is supported by Wireshark in order to decrypt SSL/TLS connections even when you don’t have the private key, or when using key exchange methods that will prevent decryption even if you do (Such as Diffie-Hellman).

This is for the standard library ssl module, it won’t work for other ssl modules.

Quick Start

import sslkeylog

sslkeylog.set_keylog("sslkeylog.txt")

# Do anything involving SSL (Using the built-in ssl module)

And set “(Pre)-Master-Secret log filename” in Wireshark’s SSL protocol preferences to the resulting file.

License

MIT License, except OpenSSL which is licensed under it’s own license. See LICENSE.txt

This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/)

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

sslkeylog-0.1.0.tar.gz (3.4 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: sslkeylog-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for sslkeylog-0.1.0.tar.gz
Algorithm Hash digest
SHA256 af0b3ab403669e4bac31009ed4fc5805be9de8ff902506f3a111729e68286ace
MD5 359828852050f99568778bafb8bc6353
BLAKE2b-256 194758d7d716a68b511916b3145b983b57c85d6dde786324eebd1b80e1a1550c

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