Skip to main content

Hetzner DNS Authenticator plugin for Certbot

Project description

Hetzner DNS Authenticator certbot plugin

codecov Tests, Coverage

This certbot plugin automates the process of completing a dns-01 challenge by creating, and subsequently removing, TXT records using the Hetzner DNS API.


Install this package via pip in the same python environment where you installed your certbot.

pip install certbot-dns-hetzner


To start using DNS authentication for the Hetzner DNS API, pass the following arguments on certbot's command line:

Option Description
--authenticator certbot-dns-hetzner:dns-hetzner select the authenticator plugin (Required)
--certbot-dns-hetzner:dns-hetzner-credentials Hetzner DNS API credentials INI file. (Required)
--certbot-dns-ispconfig:dns-ispconfig-propagation-seconds Seconds to wait for the TXT record to propagate


From the hetzner DNS control panel at go to "API Tokens" and add a personal access token.

An example credentials.ini file:

certbot_dns_hetzner:dns_hetzner_api_token = nohnah4zoo9Kiejee9aGh0thoopee2sa


To acquire a certificate for

certbot certonly \\
 --authenticator certbot-dns-hetzner:dns-hetzner \\
 --certbot-dns-hetzner:dns-hetzner-credentials /path/to/my/hetzner.ini \\

To acquire a certificate for *

   certbot certonly \\
     --authenticator certbot-dns-hetzner:dns-hetzner \\
     --certbot-dns-hetzner:dns-hetzner-credentials /path/to/my/hetzner.ini \\
     -d '*'

Thanks to

Of course certbot, which examples and documentation I used to implement this plugin. And to which served as an excellent example and README template as well.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certbot-dns-hetzner-1.0.1.tar.gz (8.0 kB view hashes)

Uploaded source

Built Distribution

certbot_dns_hetzner-1.0.1-py2.py3-none-any.whl (12.2 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page