Skip to main content

tmautils-pki

PKI/certificate utilities for Internet measurement research. Part of the tmautils package family.

Installation:

pip install tmautils-pki

API

Utility / Function What it does
RevocationChecker Check certificate revocation (OCSP/CRL)
create_ssl_context() Create configurable SSL context
get_cert() Fetch TLS certificate from a server
get_cert_chain() Fetch full certificate chain from a server
fetch_issuer_cert() Fetch issuer certificate via AIA extension
fetch_issuer_chain() Build certificate chain from leaf to root

Acknowledgments

Revocation checking logic (OCSP/CRL) adapts code from pki-tools by Michal Sadowski, licensed under the MIT License.

License

This project is licensed under MPL-2.0 (Mozilla Public License 2.0).

What this means in practice:

  • If you modify an existing file, your modifications must remain MPL-2.0.
  • You can license new files however you want. (But I won't merge them unless they are MPL-2.0.)
  • You can use this code alongside code under other licenses.

Contributing

Contributions are highly welcome! See the tmautils README for philosophy and design choices.

AI Policy: I don't consider AI tool usage any different from IDE usage. This also means that you are responsible for the code you write and you should inspect every line of code written by an LLM.

Metadata

Release files for tmautils-pki 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tmautils-pki 0.2.0
File Size Uploaded
tmautils_pki-0.2.0.tar.gz 25.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tmautils-pki 0.2.0
File Interpreter ABI Platform
tmautils_pki-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 54.9 kB

Release files / tmautils_pki-0.2.0.tar.gz

Download URL tmautils_pki-0.2.0.tar.gz
Size 25.2 kB
Tags Source
SHA-256 checksum
How to use checksums
23249fd1202c133bc8f9a450c3c6e868688d211ba7e7d7d40f9b7146b9101c88
BLAKE2b-256 checksum
How to use checksums
ecaa0b0be500cb58f38c90bcd7a174f17decafcef9859e94622c5b53c3cad817
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.3 Linux/6.19.6-200.fc43.x86_64

Release files / tmautils_pki-0.2.0-py3-none-any.whl

Download URL tmautils_pki-0.2.0-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a867d5eddae1ec11e6433161d61e840eb28fa1373398e9902aa15b94f004ff81
BLAKE2b-256 checksum
How to use checksums
24153142577d0685d40c50e48f9c0c154b2560647943f00f9d3b09c1140aedfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.3 Linux/6.19.6-200.fc43.x86_64

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page