Installation¶
Get NetBox SSL up and running in minutes.
Requirements¶
- NetBox 4.4.x or 4.5.x
- Python 3.10 or higher
- PostgreSQL (included with NetBox)
- Redis (included with NetBox)
Quick Install¶
Via pip (Recommended)¶
Via Source¶
cd /opt/netbox/netbox
git clone https://github.com/ctrl-alt-automate/netbox-ssl.git
pip install ./netbox-ssl
Configuration¶
Add the plugin to your NetBox configuration.py:
PLUGINS = [
"netbox_ssl",
]
# Optional: customize expiry thresholds
PLUGINS_CONFIG = {
"netbox_ssl": {
"expiry_warning_days": 30, # Show warning status
"expiry_critical_days": 14, # Show critical status
},
}
See Configuration for all available options.
Database Migration¶
After configuring the plugin, create the database tables:
Restart NetBox¶
Restart the NetBox services to load the plugin:
Verify Installation¶
Check that the plugin loaded correctly:
Then navigate to Plugins > SSL Certificates in the NetBox UI. You should see the Certificates menu item.
Docker Installation¶
If you're running NetBox in Docker, add the plugin to your Docker image:
Or add it to your plugin_requirements.txt:
Upgrading¶
To upgrade to a new version:
# Upgrade the package
pip install --upgrade netbox-ssl
# Run any new migrations
cd /opt/netbox/netbox
python manage.py migrate netbox_ssl
# Restart services
sudo systemctl restart netbox netbox-rq
Uninstallation¶
If you need to remove the plugin:
-
Remove
"netbox_ssl"fromPLUGINSinconfiguration.py -
Remove the database tables:
-
Uninstall the package:
-
Restart NetBox:
Troubleshooting¶
Plugin not appearing in menu¶
- Check that
"netbox_ssl"is in yourPLUGINSlist - Verify migrations ran:
python manage.py showmigrations netbox_ssl - Check NetBox logs:
journalctl -u netbox -f
Migration errors¶
- Ensure you're using a compatible NetBox version (4.4+)
- Check PostgreSQL permissions for the netbox user
Import errors¶
- Verify the
cryptographylibrary is installed:pip show cryptography
Next: Configuration — Customize plugin settings