TLS/PKI certificate expiry, policy, and compliance scanner for enterprise endpoints.
Project description
pkiwatch-py
pkiwatch-py is a production-ready Python library and CLI for TLS/PKI certificate expiry monitoring, certificate inventory, and basic compliance reporting for enterprise endpoints.
Install
pip install pkiwatch-py
CLI
pkiwatch scan google.com
pkiwatch scan google.com --output json
printf "google.com\nexample.com:443\n" > targets.txt
pkiwatch batch targets.txt --output-file cert-report.json
Python API
from pkiwatch import scan_tls_certificate
report = scan_tls_certificate("google.com", warning_days=45)
print(report.days_remaining, report.issuer)
Development
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest
ruff check src tests
python -m build
python -m twine check dist/*
Publish
Create a PyPI API token, then:
python -m twine upload dist/*
Use __token__ as username and the token as password.
License
MIT
Author: Raghava Chellu
MIT License is freely usable for academic, personal, and commercial projects.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pkiwatch_py-0.1.0.tar.gz.
File metadata
- Download URL: pkiwatch_py-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee8f6072605a1e5e8665d3dc7cbc33cc7abf04c3412a37404b3d39c67c0f48b7
|
|
| MD5 |
743148fe1d5b33572e2d8c4f33687624
|
|
| BLAKE2b-256 |
6c9815bcd947f5426f4eb424e93aebc17b88c523714f18a89dfb7fbff0eff925
|
File details
Details for the file pkiwatch_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pkiwatch_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fee47b6c7b0ddfb8de199c7d0741ebeac6bf9190e41641734383b5bacf5a076b
|
|
| MD5 |
928436f0a5fbf419704a57bcc77400dd
|
|
| BLAKE2b-256 |
29267e732e9b8bf1e4aaafed349f745e85fe7f4558ba733f7d00be7dab45f079
|