certbot-dns-netcup
netcup DNS Authenticator plugin for certbot.
This plugin automates the process of completing a dns-01 challenge by creating, and subsequently removing, TXT records. It supports both the the CCP API (legacy domains), or the new v1 netcup API (for CloudDNS).
Note: This plugin requires certbot ≥ v2.7.
If you need support for older certbot versions, check version 1.4.X and below.
Installation
Since this package acts as a plugin for certbot, the installation method can vary depending on how certbot is installed.
pip
The plugin can be installed along with certbot as a normal python package using:
pip install certbot-dns-netcup
uv
Install with uv as follows:
uv tool install certbot --with certbot_dns_netcup
or even run directly without prior installation:
uvx --from certbot --with git+https://github.com/coldfix/certbot-dns-netcup \
[...options...]
snap
If certbot is installed as a snap, you’ll have to install this plugin as follows:
sudo snap install certbot-dns-netcup
Furthermore, the following seems to be required in order to connect the plugin to certbot:
sudo snap set certbot trust-plugin-with-root=ok sudo snap connect certbot:plugin certbot-dns-netcup
docker
The official docker image of this repository is available from docker.io/coldfix/certbot-dns-netcup or ghcr.io/coldfix/certbot-dns-netcup.
Accordingly, you can pull the image as follows:
docker pull docker.io/coldfix/certbot-dns-netcup
or:
docker pull ghcr.io/coldfix/certbot-dns-netcup
Usage
To acquire a single certificate for both example.com and *.example.com, waiting 1200 seconds (20min) for DNS propagation:
certbot certonly \ --authenticator dns-netcup \ --dns-netcup-credentials ~/.secrets/certbot/netcup.ini \ --dns-netcup-propagation-seconds 1200 \ --keep-until-expiring --non-interactive --expand \ --server https://acme-v02.api.letsencrypt.org/directory \ -d 'example.com' \ -d '*.example.com'
The parameters and the format of the credentials file are described below.
Named Arguments
To start using DNS authentication for netcup, pass the following arguments on certbot’s command line:
--authenticator dns-netcup |
select the authenticator plugin (Required) |
--dns-netcup-credentials FILE |
netcup credentials INI file. (Required) |
--dns-netcup-propagation-seconds NUM |
waiting time for DNS to propagate before asking
the ACME server to verify the DNS record.
(Default: 900, Recommended: >= 600)
|
--dns-netcup-login-retries NUM |
Number of login retry attempts in case the
netcup API client session times out.
(Default: 3, Recommended: >= 1)
|
--dns-netcup-zone-name DOMAIN |
Zone name to operate on (often second-level-domain).
Will be determined using brute-force
requests if not specified.
|
NOTE: You may need to set an unexpectedly high propagation time (≥ 900 seconds) to give the netcup DNS time to propagate the entries! This may be annoying when calling certbot manually but should not be a problem in automated setups. In exceptional cases, 20 minutes may be required. See #28.
Credentials
Use of this plugin requires a configuration file containing netcup API credentials, obtained from your netcup account page. You need a different API key depending on whether your domains are managed by CloudDNS.
If they are managed by CloudDNS (you will see a CloudDNS tab in the CCP when you click on the domain), you have to use an API key for the new API (section >_ API-Keys in your account page). See also: netcup API.
If they are not yet on CloudDNS, you have to use an API key for the legacy API (Legacy API-Keys section). See also: CCP API.
For the new netcup API (CloudDNS), the credentials.ini file looks like this:
dns_netcup_api_v1_key = 0123456789abcdef0123456789abcdef01234567
For the legacy API (no CloudDNS), the credentials.ini has to contain these entries:
dns_netcup_customer_id = 123456
dns_netcup_api_key = 0123456789abcdef0123456789abcdef01234567
dns_netcup_api_password = abcdef0123456789abcdef01234567abcdef0123
Both sets of values can be present in the credentials.ini file. In this case, the old API is used as fallback if your domains are not yet managed by CloudDNS.
The path to this file can be provided interactively or using the --dns-netcup-credentials command-line argument. Certbot records the path to this file for use during renewal, but does not store the file’s contents.
CAUTION: You should protect these API credentials as you would the password to your netcup account. Users who can read this file can use these credentials to issue arbitrary API calls on your behalf. Users who can cause Certbot to run using these credentials can complete a dns-01 challenge to acquire new certificates or revoke existing certificates for associated domains, even if those domains aren’t being managed by this server.
Certbot will emit a warning if it detects that the credentials file can be accessed by other users on your system. The warning reads “Unsafe permissions on credentials configuration file”, followed by the path to the credentials file. This warning will be emitted each time Certbot uses the credentials file, including for renewal, and cannot be silenced except by addressing the issue (e.g., by using a command like chmod 600 to restrict access to the file).
Docker
You can pull the latest version of the docker image directly from Docker Hub as follows:
docker pull coldfix/certbot-dns-netcup
Alternatively, the docker image can be built from a local checkout and the included Dockerfile as follows:
docker build -t coldfix/certbot-dns-netcup .
Once that’s finished, the application can be run as follows:
docker run --rm \
-v /var/lib/letsencrypt:/var/lib/letsencrypt \
-v /etc/letsencrypt:/etc/letsencrypt \
--cap-drop=all \
coldfix/certbot-dns-netcup certbot certonly \
--authenticator dns-netcup \
--dns-netcup-propagation-seconds 900 \
--dns-netcup-credentials /var/lib/letsencrypt/netcup_credentials.ini \
--keep-until-expiring --non-interactive --expand \
--server https://acme-v02.api.letsencrypt.org/directory \
--agree-tos --email "webmaster@example.com" \
-d example.com -d '*.example.com'
You may want to change the volumes /var/lib/letsencrypt and /etc/letsencrypt to local directories where the certificates and configuration should be stored.
Metadata
Release files for certbot-dns-netcup 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| certbot_dns_netcup-2.1.0.tar.gz | 13.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| certbot_dns_netcup-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.8 kB
Release files / certbot_dns_netcup-2.1.0.tar.gz
| Download URL | certbot_dns_netcup-2.1.0.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
931747c57632ff3d870f948dd0cc5709ccf4863f66f9fd6873cafafd949355db
|
|
BLAKE2b-256 checksum How to use checksums |
a80560cffc097fae3e9929e4d5447328911bfac3b616379c76a1db8f2869b5ce
|
| 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 Oct 15, 2026.
Transparency logRelease files / certbot_dns_netcup-2.1.0-py3-none-any.whl
| Download URL | certbot_dns_netcup-2.1.0-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b5f886ec867ce401b995d421754589d072f505ac5bb61aec9dbd6b3154c13e8
|
|
BLAKE2b-256 checksum How to use checksums |
c936cbfccd0847f0692e49852b1c7ba4e2be92701e513a2ec4beda807180ac22
|
| 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 Oct 15, 2026.
Transparency logSecurity for certbot-dns-netcup 2.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for certbot_dns_netcup-2.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 Oct 15, 2026.
Transparency logA 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.