Skip to main content

A set of tools to quickly write unit tests for (m)TLS communication

Project description

TLS Test Tools

This project is a library of tools for managing ephemeral TLS secrets in unit tests.

When writing code that needs to either host a server with TLS enabled or make connections to a TLS enabled server, it's often difficult to write succinct unit tests that exercise these connections. This package aims to fix that! It provides utilities for auto-generating self-signed CAs and derived server/client pairs. It also provides tools for finding open ports to host temporary servers on.

Installation

To install, simply use pip:

pip install tls-test-tools

Or use uv for faster installation:

uv add tls-test-tools

Development

See CONTRIBUTING.md for information on setting up a development environment and contributing to this project.

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

tls_test_tools-0.2.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tls_test_tools-0.2.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file tls_test_tools-0.2.1.tar.gz.

File metadata

  • Download URL: tls_test_tools-0.2.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tls_test_tools-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1c07f4d1c106cb9996082de92e8997b7444a5029c5dbf2532b3be223ef3aa9f9
MD5 ae992afb18856f127fbd2cf9f73afe93
BLAKE2b-256 0b60936960bc43ff148e1c8934f5e25e01222780689278d38494055728178339

See more details on using hashes here.

File details

Details for the file tls_test_tools-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tls_test_tools-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tls_test_tools-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0563e7f6032f9f2950d851f8c988fc02b683294aa16553f8a33e030edd04b45
MD5 2009f6e7c76633500ef2cdef5b668adc
BLAKE2b-256 f6843e5eb693a6d5c350955fbb96b6a2f807d47102f6925f2e256f0ba2a9deac

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