Skip to main content

NetBox SSL Plugin

Project Janus — Your Single Source of Truth for TLS/SSL certificate management in NetBox

PyPI Python CI License NetBox Stable

Named after Janus, the Roman god of doorways and transitions — because every certificate guards a doorway, and every renewal is a transition.


NetBox SSL Plugin — Certificate List, Analytics, Detail, Compliance, Map

✨ Why NetBox SSL?

Managing SSL certificates across your infrastructure shouldn't be a scavenger hunt. NetBox SSL brings visibility and control to your certificate lifecycle:

  • 🔍 See everything at a glance — Know which certificates are expiring, where they're deployed, and who owns them
  • 🔄 Painless renewals — The Janus workflow transfers all assignments automatically when you renew
  • 🔒 Security first — Private keys are never stored, only location hints for your secret management system
  • 🎯 Deep integration — Certificates link directly to NetBox Services, Devices, and VMs

Requirements

Dependency Version
NetBox 4.4.0 - 4.7.x
Python 3.10+

The plugin uses the Python cryptography library for X.509 certificate parsing (installed automatically as a dependency).

Installation

pip install netbox-ssl

Add to your configuration.py:

PLUGINS = ["netbox_ssl"]

Run migrations and restart NetBox:

python manage.py migrate netbox_ssl
sudo systemctl restart netbox netbox-rq

That's it! Navigate to Plugins > SSL Certificates in your NetBox.

📖 Full documentation: https://ctrl-alt-automate.github.io/netbox-ssl/

⚙️ Configuration

Customize the plugin via PLUGINS_CONFIG in your configuration.py:

PLUGINS_CONFIG = {
    "netbox_ssl": {
        "expiry_warning_days": 30,   # Days before expiry → Warning status
        "expiry_critical_days": 14,  # Days before expiry → Critical status
    },
}
Option Type Default Description
expiry_warning_days Integer 30 Certificates expiring within this many days show warning status
expiry_critical_days Integer 14 Certificates expiring within this many days show critical status
notification_email_enabled Boolean False Enable email notifications for expiry reports
notification_email_recipients List [] Default email recipients for notifications
bulk_import_max_batch_size Integer 100 Maximum certificates per bulk import request
expiry_scan_thresholds List [14, 30, 60, 90] Days-before-expiry thresholds for the expiry scan script
expiry_scan_cooldown_hours Integer 24 Minimum hours between duplicate event notifications

See Configuration for more options including custom fields, permissions, and webhooks.

📸 Screenshots

Certificate Operations

Certificate list
Unified certificate list with status, expiry, issuer and tenant
Certificate detail
Tabbed detail view with per-certificate renewal notes
Smart Paste import
Smart Paste import with private-key rejection and chain parsing
Bulk CSV/JSON import
Bulk CSV/JSON import with preview workflow (v0.5+)
Assignments
Track which certificates are assigned to which services
CSRs
Certificate Signing Requests through their lifecycle

Insights & Compliance

Analytics dashboard
Analytics: status, algorithms, expiry forecast, CA and ACME distribution
Compliance report
Compliance score card, failure breakdown and 90-day trend
Certificate map
Certificate map topology — Tenant → Device/VM → Service → Certificate (HTMX-lazy)

Governance

Certificate Authorities
Known Certificate Authorities with auto-detection and scoping
CA detail
CA detail with markdown renewal instructions (v0.8+)
External Sources
External Sources framework — Lemur / Generic REST adapters (v0.8+)
External Source detail
Source configuration, sync status and one-click Dry Run

Screenshots come from a seeded demo environment. To regenerate them:

docker compose up -d
docker exec -i netbox-ssl-netbox-1 /opt/netbox/venv/bin/python \
    /opt/netbox/netbox/manage.py shell < scripts/create_test_data.py
docker exec -i netbox-ssl-netbox-1 /opt/netbox/venv/bin/python \
    /opt/netbox/netbox/manage.py shell < scripts/seed_certificates.py
pip install playwright requests && playwright install chromium
python scripts/take_screenshots.py

Features

Smart Paste Import

Just paste your PEM certificate — the plugin extracts everything automatically: Common Name, SANs, validity dates, issuer chain, fingerprints, and more.

Janus Renewal Workflow

When you import a renewed certificate (same CN as an existing one), the plugin offers to:

  • Preview assignments that will be transferred in a detailed table
  • Transfer all assignments from the old certificate atomically
  • Archive the old certificate with "Replaced" status
  • Link them together for audit trail

Start a renewal directly from the certificate detail page with the Renew button.

Certificate Authority Tracking

Track your CAs (Let's Encrypt, DigiCert, Sectigo, internal CAs) with automatic detection based on issuer patterns.

Certificate Signing Requests (CSR)

Track pending certificate requests through their lifecycle: Pending, Approved, Rejected, Issued.

Chain Validation

Validate certificate chains for completeness, signature correctness, and expiry.

Compliance Reporting

Define compliance policies (minimum key size, forbidden algorithms, max validity, etc.) and run checks across your certificate inventory. 10 built-in policy types with severity levels and scoring.

Data Export

Export certificates in CSV, JSON, YAML, or PEM bundle format with configurable field selection.

Bulk CSV/JSON Import

Import certificate metadata from CSV or JSON files — paste content or upload a file. Two-step workflow with preview and validation before creating certificates. Also available via API.

ACME Certificate Monitoring

Track Let's Encrypt and other ACME-issued certificates with auto-detection, renewal status, and provider metadata. Supports 7+ ACME providers.

Analytics Dashboard

Visual overview of your certificate landscape: status distribution, key algorithms, expiry forecast with contextual colors, CA distribution, and ACME coverage. Tenant-filterable with dark mode support.

Compliance Report

Score overview with progress indicator, failure breakdowns by severity and policy type, 90-day trend chart, and CSV/JSON export.

Certificate Map

Interactive topology view showing certificates per Tenant → Device/VM → Service, with color-coded expiry status and HTMX lazy loading for performance.

Email Notifications

Receive email alerts when certificates are expiring. Configurable recipients, thresholds, and subject prefix. Sends HTML + plain-text reports.

Certificate Assignments

Link certificates to the objects that use them:

  • Services (recommended) — Port-level granularity (e.g., HTTPS on port 443)
  • Devices — Physical servers and appliances
  • Virtual Machines — VMs in your virtualization clusters

Expiry Dashboard Widget

Add the widget to your NetBox dashboard to see:

  • 🔴 Critical — Expiring within 14 days
  • 🟠 Warning — Expiring within 30 days
  • ⚫ Orphan — Certificates without assignments

Security by Design

  • No private key storage — Private keys never touch the database
  • Private key rejection — PEM input with private keys is blocked
  • Key location hints — Document where keys are stored (e.g., vault:secret/certs/example.com)

📊 Compatibility

NetBox Version Plugin Version Status
4.7.x 1.4.x ✅ Supported
4.6.x 1.1.x - 1.4.x ✅ Primary
4.5.x 1.1.x - 1.4.x ✅ Supported
4.4.x 1.1.x - 1.4.x ✅ Supported
4.3.x and older — ❌ Unsupported

📚 Documentation

Full documentation lives at ctrl-alt-automate.github.io/netbox-ssl — searchable, versioned, dark-mode enabled.

Offline copies of all pages also live in the docs/ folder:

🛠️ Development

# Clone and start development environment
git clone https://github.com/ctrl-alt-automate/netbox-ssl.git
cd netbox-ssl
docker compose up -d

# Access NetBox at http://localhost:8000
# Login: admin / admin

See CONTRIBUTING.md for more details.

🤝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch from dev
  3. Make your changes with tests
  4. Submit a pull request

📄 License

Apache License 2.0

🙏 Acknowledgments

  • The NetBox community for the excellent plugin framework
  • The cryptography library for robust X.509 parsing

Metadata

Release files for netbox-ssl 1.4.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 netbox-ssl 1.4.0
File Size Uploaded Provenance Actions
netbox_ssl-1.4.0.tar.gz 355.8 kB With provenance Details for netbox_ssl-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netbox-ssl 1.4.0
File Interpreter ABI Platform Actions
netbox_ssl-1.4.0-py3-none-any.whl Python 3 none any Details for netbox_ssl-1.4.0-py3-none-any.whl

Total release size: 634.2 kB

Release files / netbox_ssl-1.4.0.tar.gz

Download URL netbox_ssl-1.4.0.tar.gz
Size 355.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3e93fa256721773152fea53dd5fb16277834ff9c8b363d3bc55fa987313dcdff
BLAKE2b-256 checksum
How to use checksums
058d7e695d2b0b5bdb444d080e7695d92551d540c9b61f129c15ce25b997ad35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / netbox_ssl-1.4.0-py3-none-any.whl

Download URL netbox_ssl-1.4.0-py3-none-any.whl
Size 278.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74f69ec09478d01ff7b86764be9cc76e0ab2f4a49cb9143544b3c8de486cffca
BLAKE2b-256 checksum
How to use checksums
772906d3f7398c55d9670e7ca1c619030648402dd02dc70288075d3f0a977a5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Security for netbox-ssl 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for netbox_ssl-1.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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