Skip to main content

Hetzner DNS Authenticator plugin for Certbot

Project description

Hetzner DNS Authenticator certbot plugin

codecov Tests, Coverage PyPI version Supported Python

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


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.4.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certbot_dns_hetzner-1.0.4-py2.py3-none-any.whl (12.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file certbot-dns-hetzner-1.0.4.tar.gz.

File metadata

  • Download URL: certbot-dns-hetzner-1.0.4.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.0

File hashes

Hashes for certbot-dns-hetzner-1.0.4.tar.gz
Algorithm Hash digest
SHA256 9c8c155c80f68430c6cdf6ebda128f95620cc28a8494032e9b7f09b36f8bb04a
MD5 70699826f314d29a886f751187d39639
BLAKE2b-256 aa64409b063a56a5df96b03e0626703e1a46384cc804f4539b2d1a371c4ad338

See more details on using hashes here.

File details

Details for the file certbot_dns_hetzner-1.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: certbot_dns_hetzner-1.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.0

File hashes

Hashes for certbot_dns_hetzner-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 72f9d72bd22e3b58d9dd226fb30c944ac7c136610fd6d57f3caa36863ba37b30
MD5 221d23a4b67f55cc3a4b46834627b1ff
BLAKE2b-256 df7cb856236cf86619e1a0c9fe98e52b851af2d26a658eff257e0b3d8202e519

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page