Part of BlackRoad OS — Sovereign Computing for Everyone
ulackroad cert manager is part of the BlackRoad OS ecosystem — a sovereign, distributed operating system built on edge computing, local AI, and mesh networking by BlackRoad OS, Inc.
BlackRoad OS is a sovereign computing platform that runs AI locally on your own hardware. No cloud dependencies. No API keys. No surveillance. Built by BlackRoad OS, Inc., a Delaware C-Corp founded in 2025.
- Local AI — Run LLMs on Raspberry Pi, Hailo-8, and commodity hardware
- Mesh Networking — WireGuard VPN, NATS pub/sub, peer-to-peer communication
- Edge Computing — 52 TOPS of AI acceleration across a Pi fleet
- Self-Hosted Everything — Git, DNS, storage, CI/CD, chat — all sovereign
- Zero Cloud Dependencies — Your data stays on your hardware
| Organization | Focus |
|---|---|
| BlackRoad OS | Core platform and applications |
| BlackRoad OS, Inc. | Corporate and enterprise |
| BlackRoad AI | Artificial intelligence and ML |
| BlackRoad Hardware | Edge hardware and IoT |
| BlackRoad Security | Cybersecurity and auditing |
| BlackRoad Quantum | Quantum computing research |
| BlackRoad Agents | Autonomous AI agents |
| BlackRoad Network | Mesh and distributed networking |
| BlackRoad Education | Learning and tutoring platforms |
| BlackRoad Labs | Research and experiments |
| BlackRoad Cloud | Self-hosted cloud infrastructure |
| BlackRoad Forge | Developer tools and utilities |
- Website: blackroad.io
- Documentation: docs.blackroad.io
- Chat: chat.blackroad.io
- Search: search.blackroad.io
TLS certificate lifecycle management
Part of the BlackRoad OS ecosystem — BlackRoad-Security
TLS certificate lifecycle management — BlackRoad Security
Monitor, track, and manage TLS certificates at scale. Detect expiring or expired certs, verify certificate chains, and export inventory reports. stdlib only — uses Python's built-in ssl and socket modules.
- 🔒 Live Scanning: Fetch cert info from any TLS-enabled host
- ⏰ Expiry Tracking: Days-to-expiry with configurable warning thresholds
- 🔗 Chain Verification: Verify full certificate chain using stdlib
ssl - 🚨 Alerting: Auto-generate alerts for expiring/expired certs
- 📊 Inventory Export: JSON and CSV inventory reports
- 🔄 Bulk Refresh: Refresh all stored certs from live hosts
- 💾 SQLite: Self-contained, zero-config backend
- 📦 Zero dependencies: Only Python stdlib
# Add real certificates by scanning live hosts
python cert_manager.py add github.com
python cert_manager.py add cloudflare.com
# Check expiry for a domain
python cert_manager.py check github.com 30
# List all certificates
python cert_manager.py list
# Get expiring certs (within 30 days)
python cert_manager.py expiring 30
# Get expired certs
python cert_manager.py expired
# Verify certificate chain
python cert_manager.py verify github.com
# Generate alerts for expiring/expired certs
python cert_manager.py alerts 30 7
# Refresh all certs from live hosts
python cert_manager.py refresh
# Export inventory
python cert_manager.py export json
python cert_manager.py export csv
# Stats
python cert_manager.py stats
# Demo (scans github.com, google.com, cloudflare.com)
python cert_manager.py demo[Add/Scan] → [valid] → ... → [expiring] → [expired] → [remove]
↑
Alert at 30d, critical at 7d
from cert_manager import CertManager
db = CertManager("certs.db")
# Scan and add certificate
cert = db.add_cert("github.com")
print(f"{cert.domain}: {cert.days_until_expiry} days remaining")
# Check expiry
result = db.check_expiry("github.com", days_warning=30)
# Get expiring certs
expiring = db.get_expiring(days=30)
# Verify chain
result = db.verify_chain(cert.id)
# Export inventory
json_inventory = db.export_inventory("json")
csv_inventory = db.export_inventory("csv")
# Check and generate alerts
alerts = db.check_and_alert(days_warning=30, days_critical=7)| Status | Meaning |
|---|---|
valid |
Certificate is valid (> 30 days remaining) |
expiring |
Certificate expires within warning threshold |
expired |
Certificate has expired |
revoked |
Certificate has been revoked |
pip install pytest
pytest test_cert_manager.py -vNote: Integration tests (
test_add_cert_fetch_live,test_verify_chain_live) require network access. They are automatically skipped if no network is available.