Skip to main content

certbot-dns-teamnifty

Certbot DNS-01 authenticator plugin for Flux ERP. It publishes the ACME challenge through the dns-01 API of a Flux ERP instance and removes it again after the certificate has been issued. It also works for wildcard certificates.

Besides the plugin, this repository documents how to use the same API with lego and acme.sh.

Installation

pip install certbot-dns-teamnifty

The plugin is published on PyPI only. It cannot be loaded by the certbot snap (the snap's Python is read-only and trust-plugin-with-root only applies to plugin snaps), so use certbot installed with pip, for example in a venv:

python3 -m venv /opt/certbot
/opt/certbot/bin/pip install certbot certbot-dns-teamnifty

Check that certbot sees the plugin:

certbot plugins

Credentials

Create an API token for dns-01 in your Flux portal. It shows you the API URL and the token. Put both into an INI file and make it readable only by you:

# /etc/letsencrypt/teamnifty.ini
dns_teamnifty_api_url = https://flux.example.com/api/dns-01
dns_teamnifty_token = <your token>
chmod 600 /etc/letsencrypt/teamnifty.ini

There is no built in default URL, dns_teamnifty_api_url is required.

Usage

Single name:

certbot certonly \
  --authenticator dns-teamnifty \
  --dns-teamnifty-credentials /etc/letsencrypt/teamnifty.ini \
  -d example.com

Wildcard plus apex:

certbot certonly \
  --authenticator dns-teamnifty \
  --dns-teamnifty-credentials /etc/letsencrypt/teamnifty.ini \
  -d example.com -d '*.example.com'

Arguments:

Argument Default Description
--dns-teamnifty-credentials Path to the credentials INI file (required)
--dns-teamnifty-propagation-seconds 120 Seconds to wait for the record to reach the name servers before certbot asks the CA to validate

The plugin calls POST {api_url}/present and POST {api_url}/cleanup with Authorization: Bearer <token> and a JSON body {"fqdn": "...", "value": "..."}. A failing cleanup is only logged, it never fails an issuance that already worked.

lego

lego needs no plugin, use its built in httpreq provider:

HTTPREQ_ENDPOINT=https://flux.example.com/api/dns-01 \
HTTPREQ_USERNAME=token \
HTTPREQ_PASSWORD=<your token> \
lego --dns httpreq --domains example.com --domains '*.example.com' \
  --email you@example.com run

lego sends Basic auth only when both HTTPREQ_USERNAME and HTTPREQ_PASSWORD are set, so set both. The API takes the token from the password, the user name is not checked (use any value). Leave HTTPREQ_MODE unset (not RAW).

acme.sh

Copy contrib/acme.sh/dns_teamnifty.sh into ~/.acme.sh/dnsapi/, then:

export TEAMNIFTY_API_URL=https://flux.example.com/api/dns-01
export TEAMNIFTY_TOKEN=<your token>
acme.sh --issue --dns dns_teamnifty -d example.com -d '*.example.com'

Both values are saved in the acme.sh account configuration for renewals.

Development

python3 -m venv .venv
.venv/bin/pip install -e '.[test]'
.venv/bin/python -m pytest -q && .venv/bin/ruff check .

License

Apache License 2.0, see LICENSE.

Metadata

Release files for certbot-dns-teamnifty 0.1.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 certbot-dns-teamnifty 0.1.0
File Size Uploaded Provenance Actions
certbot_dns_teamnifty-0.1.0.tar.gz 9.4 kB With provenance Details for certbot_dns_teamnifty-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 18.5 kB

Release files / certbot_dns_teamnifty-0.1.0.tar.gz

Download URL certbot_dns_teamnifty-0.1.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
78449d360c1dee166c1e8b9f010b781ba9e3e8317089df8768986f7ecc43aa42
BLAKE2b-256 checksum
How to use checksums
1fc01ed522eb6f37385d1f08ad12dcc922adf75a9601999ec2250968f0f62a45
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 27, 2026.

Transparency log

Release files / certbot_dns_teamnifty-0.1.0-py3-none-any.whl

Download URL certbot_dns_teamnifty-0.1.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1557d143f1f15b212b920db4d5dbf36568f7c927adc03f49e98398d6d7244e4e
BLAKE2b-256 checksum
How to use checksums
b9b6a749d0c0d59083e441679beef4a3facbcd05a1ff0049211eb234fef431c7
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 27, 2026.

Transparency log

Security for certbot-dns-teamnifty 0.1.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 certbot_dns_teamnifty-0.1.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 Nov 27, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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