Skip to main content

PKI/certificate utilities for tmautils

Project description

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.

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

tmautils_pki-0.2.0.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

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

tmautils_pki-0.2.0-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file tmautils_pki-0.2.0.tar.gz.

File metadata

  • Download URL: tmautils_pki-0.2.0.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.19.6-200.fc43.x86_64

File hashes

Hashes for tmautils_pki-0.2.0.tar.gz
Algorithm Hash digest
SHA256 23249fd1202c133bc8f9a450c3c6e868688d211ba7e7d7d40f9b7146b9101c88
MD5 7a133bf0753f1401e8ac1c312252f4f6
BLAKE2b-256 ecaa0b0be500cb58f38c90bcd7a174f17decafcef9859e94622c5b53c3cad817

See more details on using hashes here.

File details

Details for the file tmautils_pki-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tmautils_pki-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.19.6-200.fc43.x86_64

File hashes

Hashes for tmautils_pki-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a867d5eddae1ec11e6433161d61e840eb28fa1373398e9902aa15b94f004ff81
MD5 46f0cbcb084fca750107c6ea3739d096
BLAKE2b-256 24153142577d0685d40c50e48f9c0c154b2560647943f00f9d3b09c1140aedfa

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