Registry / devops / certbot-nginx

certbot-nginx

JSON →
library5.6.0pypypiunverified

Official Nginx plugin for Certbot, enabling automatic TLS certificate issuance and renewal for Nginx servers on Linux. Current version 5.5.0 supports Python >=3.10. Released approximately quarterly.

pip install certbot-nginx
INSTALL
IMPORT
SIG · CERTBOT-NGINX
C
certbot-nginx
devopspythonv5.6.0
Install
4.1s avg
Import
995ms
Disk
46MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.6.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.206s · 47.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.1s · import 0.192s · 48MB
46MB installed
● package 46MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NginxConfigurator
from certbot_nginx.configurator import NginxConfigurator
from certbot_nginx._internal.configurator import NginxConfigurator

Run certbot with the Nginx plugin to obtain and install a TLS certificate. For production, ensure Nginx server blocks exist before running.

import subprocess import sys # Unattended install of cert for example.com using certbot-nginx result = subprocess.run([ sys.executable, '-m', 'certbot', '--nginx', '-d', 'example.com', '--non-interactive', '--agree-tos', '-m', 'admin@example.com' ], capture_output=True, text=True) print(result.stdout) if result.returncode != 0: print(result.stderr, file=sys.stderr)
Debug
Known issues
breakingIn v5.5.0, most certbot-nginx code was moved into private modules within the certbot package. Third-party code importing from certbot_nginx may break.
fix
Switch imports to 'certbot_nginx._internal' or rely on certbot's extras: 'certbot[nginx]'.
affects: >=5.5.0
deprecatedPython 3.8 and 3.9 support dropped; requires Python >=3.10.
fix
Upgrade to Python 3.10+.
affects: <5.5.0
gotchacertbot-nginx modifies Nginx configuration files. Always backup your configs before running.
fix
Run 'certbot --nginx --dry-run' first to preview changes.
affects: all
Upgrade
Version history
5.6.0latest on PyPI · released May 11, 2026
Audit
Dependencies
certbotrequiredCore Certbot runtime; certbot-nginx is now a thin wrapper registering the plugin.
pyparsingrequiredParsing Nginx configuration files; version >=3.0.0 required.
Agent activity
35 hits · last 30 days
node
32
OpenAI (training)
1
Resources
certbot-nginx — pip install certbot-nginx · libregistry