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.
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 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-hetzner: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:
certbot_dns_hetzner:dns_hetzner_api_token = nohnah4zoo9Kiejee9aGh0thoopee2sa
Examples
To acquire a certificate for example.com
certbot certonly \\
--authenticator certbot-dns-hetzner:dns-hetzner \\
--certbot-dns-hetzner:dns-hetzner-credentials /path/to/my/hetzner.ini \\
-d example.com
To acquire a certificate for *.example.com
certbot certonly \\
--authenticator certbot-dns-hetzner:dns-hetzner \\
--certbot-dns-hetzner:dns-hetzner-credentials /path/to/my/hetzner.ini \\
-d '*.example.com'
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
Hashes for certbot-dns-hetzner-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4335e9f400d8420248f8d22c0b193d07ed547bc81ad0c890daf26f3e600ae61a |
|
MD5 | 3d76242cd61f94a59a6f08a3614b717b |
|
BLAKE2b-256 | c9ff41706751973da5bffb29a6c31e4e8fdd035203a08198b1d28bc6ed79e794 |
Hashes for certbot_dns_hetzner-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f22b99f439df1653a0c014c158ada2cd0da10ec6fad393d3db0d33efcf5929f |
|
MD5 | a16ab84f32b5f46cf5334bee675b9620 |
|
BLAKE2b-256 | fead979a2c80774926374115c52d811ac6d72795500edb44c0655ce225614257 |