Hetzner DNS Authenticator plugin for Certbot
Project description
Hetzner DNS Authenticator certbot plugin
This certbot plugin automates the process of completing a dns-01 challenge by creating, and subsequently removing, TXT records using the Hetzner DNS API.
Requirements
For certbot < 2
Notice that this plugin is only supporting certbot>=2.0 from 2.0 onwards. For older certbot versions use 1.x releases.
Install
Install this package via pip in the same python environment where you installed your certbot.
pip install certbot-dns-hetzner
Usage
To start using DNS authentication for the Hetzner DNS API, pass the following arguments on certbot's command line:
Option | Description |
---|---|
--authenticator dns-hetzner |
select the authenticator plugin (Required) |
--dns-hetzner-credentials |
Hetzner DNS API credentials INI file. (Required) |
--dns-hetzner-propagation-seconds |
Seconds to wait for the TXT record to propagate |
Credentials
From the hetzner DNS control panel at https://dns.hetzner.com go to "API Tokens" and add a personal access token.
An example credentials.ini
file:
dns_hetzner_api_token = nohnah4zoo9Kiejee9aGh0thoopee2sa
Examples
To acquire a certificate for example.com
certbot certonly \\
--authenticator dns-hetzner \\
--dns-hetzner-credentials /path/to/my/hetzner.ini \\
-d example.com
To acquire a certificate for *.example.com
certbot certonly \\
--authenticator dns-hetzner \\
--dns-hetzner-credentials /path/to/my/hetzner.ini \\
-d '*.example.com'
Troubleshooting
If certbot plugins
does not show the installed plugin, you might need to set CERTBOT_PLUGIN_PATH
.
CERTBOT_PLUGIN_PATH=/usr/local/lib/python3.9/site-packages/ certbot renew
See letsencrypt community thread
Thanks to
Of course certbot, which examples and documentation I used to implement this plugin. And to https://github.com/m42e/certbot-dns-ispconfig which served as an excellent example and README template as well.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file certbot_dns_hetzner-2.0.1.tar.gz
.
File metadata
- Download URL: certbot_dns_hetzner-2.0.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 406a6d3b146a41177e85deed23a021c0f54ecefab6806f5a8d0a75f3b638f680 |
|
MD5 | f4023d9709fa57e58c0f51a40e1f929b |
|
BLAKE2b-256 | 4fa9316589e75495438649c3e3e1b8c85cf7765db1c8c7440517b3fd4220d8de |
File details
Details for the file certbot_dns_hetzner-2.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: certbot_dns_hetzner-2.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d66d57bf717f4f0b9c9282106b0ab1bc6960453bc7d6f8d6cdbc8a4d26f4c6be |
|
MD5 | b97a7dcb5aff8f5df0343471d9781723 |
|
BLAKE2b-256 | f4a9c0f3a518d1a113751a6dbde858ef3bcb54b72ff02b8571d7388330c6ea9f |