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.

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'

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-2.0.0.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-2.0.0-py2.py3-none-any.whl (9.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: certbot-dns-hetzner-2.0.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for certbot-dns-hetzner-2.0.0.tar.gz
Algorithm Hash digest
SHA256 5809c6adae28d1991328c661b1c40a645e3448cc4066ecb71795613f1701f272
MD5 73f5770cfa6de6584156b0937a0bc188
BLAKE2b-256 d74a5b8f6b21f572f97d4b17d71696231a5d0315861a19e823e64c09dfa98871

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for certbot_dns_hetzner-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 245a7cb7a57c405ce6dd5f1c8f3050560eb8e616824708f8716f235e79d79bd3
MD5 b15ca8851cdbb8fa51441efda17e57c5
BLAKE2b-256 effcb9988b5df3ad4cc88cdbf0441a42def76bc1fe481e89b45fb57f277ddb2f

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