Skip to main content

GitHub Release PyPI Version Snapcraft Version License Build Release codecov

Certbot DNS Plugin for Hetzner Cloud DNS

This is a Certbot DNS plugin for the new Hetzner Cloud DNS, which allows you to automate the process of obtaining and renewing SSL/TLS certificates using the DNS-01 challenge method. This Plugin is not compatible with the old Hetzner DNS Console and you might want to take a look at the certbot-dns-hetzner plugin instead.

Setup

Installation

To install the Certbot DNS plugin for Hetzner Cloud DNS, you can either use pip or snap.

Installation using pip

If you installed Certbot within a virtual environment (e.g., /opt/certbot) as per official Certbot instructions you can install the plugin using the following command:

/opt/certbot/bin/pip install certbot-dns-hetzner-cloud

Installation using snap

If you installed Certbot using snap, you can install the plugin with the following commands:

sudo snap install certbot-dns-hetzner-cloud
sudo snap set certbot trust-plugin-with-root=ok
sudo snap connect certbot:plugin certbot-dns-hetzner-cloud

Verify installation

After installation, you can verify that the plugin is available by running:

certbot plugins

you should see dns-hetzner-cloud listed among the available plugins.

Storing the API Token

Create a configuration file under /etc/letsencrypt/hetzner-cloud.ini with the following content:

# Hetzner Cloud API Token
dns_hetzner_cloud_api_token = your_api_token_here

Make sure to set the correct permissions for the configuration file to protect your API token:

sudo chmod 600 /etc/letsencrypt/hetzner-cloud.ini

If you want to use a different path for the configuration file, you can specify it using the --dns-hetzner-cloud-credentials option when running Certbot.

The token must belong to the Hetzner Cloud project that contains the zone. The plugin looks up the zones of that project and uses the most specific one the name belongs to, so zones for subdomains work as well.

Usage

You can use the plugin with Certbot by specifying the dns-hetzner-cloud authenticator. Here is an example command to obtain a certificate for a wildcard subdomain:

certbot certonly --agree-tos \
  --authenticator dns-hetzner-cloud \
  -d '*.example.eu'

If you want to use a different path for the configuration file, you can specify it using the
--dns-hetzner-cloud-credentials option.

certbot certonly --agree-tos \
  --authenticator dns-hetzner-cloud \
  --dns-hetzner-cloud-credentials /path/to/your/hetzner-cloud.ini \
  -d '*.example.eu'

Options

The following options can be given on the command line or in the credentials file:

Command line Credentials file Default
--dns-hetzner-cloud-propagation-seconds 120 dns_hetzner_cloud_propagation_seconds = 120 30
--dns-hetzner-cloud-follow-cname dns_hetzner_cloud_follow_cname = true off

A value on the command line (or in Certbot's cli.ini) takes precedence over the credentials file. Certbot stores command line values for renewal, so they keep winning on every renewal of that certificate. Values in the credentials file are read on every run, so changing the file takes effect on the next renewal.

Propagation seconds

The number of seconds the plugin waits after creating the TXT record before Let's Encrypt checks it. Raise it if validation fails with "No TXT record found".

Follow CNAME

With this option the plugin resolves _acme-challenge.<domain> before creating the TXT record. If it is a CNAME, the record is created in the zone the CNAME points to. This lets you keep the API token away from your main zone:

  1. Create a separate zone, e.g. acme-example.eu, in its own Hetzner Cloud project and create the API token there.
  2. Add a CNAME once per name in your main zone, e.g. _acme-challenge.example.eu → example-eu.acme-example.eu.
  3. Enable the option. For *.example.eu the plugin then creates the TXT record example-eu in acme-example.eu.

The token can only change the separate zone. The CNAME is resolved with the system resolver; names without a CNAME are handled as before.

Metadata

Release files for certbot-dns-hetzner-cloud 1.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-hetzner-cloud 1.1.0
File Size Uploaded Provenance Actions
certbot_dns_hetzner_cloud-1.1.0.tar.gz 21.6 kB With provenance Details for certbot_dns_hetzner_cloud-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for certbot-dns-hetzner-cloud 1.1.0
File Interpreter ABI Platform Actions
certbot_dns_hetzner_cloud-1.1.0-py3-none-any.whl Python 3 none any Details for certbot_dns_hetzner_cloud-1.1.0-py3-none-any.whl

Total release size: 29.7 kB

Release files / certbot_dns_hetzner_cloud-1.1.0.tar.gz

Download URL certbot_dns_hetzner_cloud-1.1.0.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a42a8973275d6de6280e71561ac16c2dc4ab5cd282f8bbd52f10727d27c469a5
BLAKE2b-256 checksum
How to use checksums
2fbdde7b1d777d3a582f5606d4a071f384c0570abbeb3af3e7965caccda6a6f0
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 20, 2026.

Transparency log

Release files / certbot_dns_hetzner_cloud-1.1.0-py3-none-any.whl

Download URL certbot_dns_hetzner_cloud-1.1.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9099ae2c092e0a3a6eb8ac54160d561f54566f2119afc632dbd0e7ec238d9824
BLAKE2b-256 checksum
How to use checksums
85e16e74d4197f9c65ab64899da71709d537d4d4e0084f822d79456af76df42e
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 20, 2026.

Transparency log

Security for certbot-dns-hetzner-cloud 1.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_hetzner_cloud-1.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 20, 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