Skip to main content

certbot-dns-nicmanager

Wildcard certificates for nicmanager domains. Issued and renewed without you.

Tests Publish PyPI version Downloads per month

Latest release Python versions Apache-2.0 Support on Ko-fi

PyPI · Troubleshooting · Changelog

A Certbot plugin for nicmanager AnycastDNS. It answers the dns-01 challenge through the nicmanager API: *.example.com certificates, with an account that can touch nothing but the challenge record.

Quick start

pip install certbot-dns-nicmanager      # into the same environment as Certbot
certbot certonly --authenticator dns-nicmanager \
  --dns-nicmanager-credentials ~/.secrets/certbot/nicmanager.ini \
  -d 'example.com' -d '*.example.com'

certbot plugins should list dns-nicmanager. There is no snap package: if your Certbot came from snap, run Certbot from a pip environment with both packages.

✨ Features

  • Wildcard certificates — dns-01 is the only ACME challenge that issues them, and it needs no inbound port
  • Least privilege — works with nicmanager's restricted API-ACME account; it does not even need to read the zone
  • Two-factor authentication — a fresh TOTP code with every request
  • Cleanup by id — the challenge record is deleted by the id the API returned; if that fails, zone and id are logged for manual removal
  • Fewer hostnames in public logs — one wildcard instead of a certificate per host keeps service names out of Certificate Transparency
  • Small and tested — three runtime dependencies, typed, ~95 % test coverage, Python 3.10 to 3.15, in production since June 2026

Credentials

Create a dedicated API-ACME account in nicmanager with only these rights:

Module Rights
Nameserver View, Manage (create, edit, delete)
everything else –

A leaked credential then cannot touch other records, transfer domains or read account data.

~/.secrets/certbot/nicmanager.ini, then chmod 600 it:

# login.username — or the email, if the account logs in with "E-Mail + Passwort"
dns_nicmanager_username = mylogin.acmeuser
# Quote the password if it contains '#': unquoted, '#' starts a comment.
dns_nicmanager_password = "0123456789abcdef0123456789abcdef"

# Optional: only if the account has 2FA. Needs an accurate clock (NTP).
# dns_nicmanager_totp_secret = JBSWY3DPEHPK3PXP

# Optional: defaults to https://api.nicmanager.com/v1
# dns_nicmanager_endpoint = https://api.nicmanager.com/v1

# Optional: skip zone detection. Applies to every domain of the certificate.
# dns_nicmanager_zone = example.com
Argument Default
--dns-nicmanager-credentials — path to the INI file required
--dns-nicmanager-propagation-seconds — wait before the ACME server checks 60

How it works

  1. Certbot hands over _acme-challenge.<domain> and the token.
  2. The plugin finds the zone without reading it: it tries POST /anycast/<zone>/records from the most specific candidate up. 403/404 moves on, the first success wins, a 401 stops at once.
  3. nicmanager returns the record id; TTL is the API minimum of 900 seconds.
  4. After validation: DELETE /anycast/<zone>/records/<id>.

Troubleshooting

Response Fix
401 Authentication error Wrong username form: email for "E-Mail + Passwort" accounts, login.username otherwise
401 Missing 2FA token header Set dns_nicmanager_totp_secret
403 API usage not allowed Ask nicmanager support to enable API access
401 Too many invalid attempts, or no response IP blocked after failed logins: stop and wait, never loop over credential variants; with 2FA check the clock

Everything else: docs/TROUBLESHOOTING.md.

Contributing

Issues and pull requests are welcome; see CONTRIBUTING.md. Security issues go through private vulnerability reporting. The design and its decisions are in docs-tech/.

pip install -e '.[test,dev]' && pytest && ruff check . && mypy certbot_dns_nicmanager

License

Apache License 2.0. An independent plugin, not affiliated with or endorsed by InterNexum GmbH / nicmanager or the EFF / Certbot project.

Metadata

Release files for certbot-dns-nicmanager 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for certbot-dns-nicmanager 1.1.2
File Size Uploaded Provenance Actions
certbot_dns_nicmanager-1.1.2.tar.gz 33.3 kB With provenance Details for certbot_dns_nicmanager-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for certbot-dns-nicmanager 1.1.2
File Interpreter ABI Platform Actions
certbot_dns_nicmanager-1.1.2-py3-none-any.whl Python 3 none any Details for certbot_dns_nicmanager-1.1.2-py3-none-any.whl

Total release size: 51.4 kB

Release files / certbot_dns_nicmanager-1.1.2.tar.gz

Download URL certbot_dns_nicmanager-1.1.2.tar.gz
Size 33.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ab848e338669bfbe27813c051551d6c134559620379f6abe1a0f24115401b224
BLAKE2b-256 checksum
How to use checksums
915f1a3f5a010ee59029a06aea61e0bc81776e7336ac00daed6212ce3739a6f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Release files / certbot_dns_nicmanager-1.1.2-py3-none-any.whl

Download URL certbot_dns_nicmanager-1.1.2-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2d8fa289dbbb1b617077c27c022c8daf2fd236b1b960dcc418e69f9fe1275d2
BLAKE2b-256 checksum
How to use checksums
2a3b8cfe4a31bf78577d1c8aab0f19efdfcb078182a3c631cb10cc9551be4e23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Security for certbot-dns-nicmanager 1.1.2

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 certbot_dns_nicmanager-1.1.2.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 Nov 24, 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