Skip to main content

Certbot DNS Plugin for Hetzner Cloud DNS

Project description

Version License Build Release codecov

Certbot DNS Plugin for Hetzner Cloud DNS

This is a Certbot DNS plugin for the new Hetzner Cloud DNS, which allows you to automate the process of obtaining and renewing SSL/TLS certificates using the DNS-01 challenge method. This Plugin is not compatible with the old Hetzner DNS Console and you might want to take a look at the certbot-dns-hetzner plugin instead.

Setup

Installation

To install the Certbot DNS plugin for Hetzner Cloud DNS, you can either use pip or snap.

Installation using pip

If you installed Certbot within a virtual environment (e.g., /opt/certbot) as per official Certbot instructions you can install the plugin using the following command:

/opt/certbot/bin/pip install certbot-dns-hetzner-cloud

Installation using snap

If you installed Certbot using snap, you can install the plugin with the following command:

sudo snap install certbot-dns-hetzner-cloud

Verification

After installation, you can verify that the plugin is available by running:

certbot plugins

you should see dns-hetzner-cloud listed among the available plugins.

Storing the API Token

Create a configuration file under /etc/letsencrypt/hetzner_cloud.ini with the following content:

# Hetzner Cloud API Token
dns_hetzner_cloud_api_token = your_api_token_here

Make sure to set the correct permissions for the configuration file to protect your API token:

sudo chmod 600 /etc/letsencrypt/hetzner_cloud.ini

If you want to use a different path for the configuration file, you can specify it using the --dns-hetzner-cloud-credentials option when running Certbot.

Usage

You can use the plugin with Certbot by specifying the dns-hetzner-cloud authenticator. Here is an example command to obtain a certificate for a wildcard subdomain:

certbot certonly --agree-tos \
  --authenticator dns-hetzner-cloud \
  -d '*.example.eu'

If you want to use a different path for the configuration file, you can specify it using the
--dns-hetzner-cloud-credentials option.

certbot certonly --agree-tos \
  --authenticator dns-hetzner-cloud \
  --dns-hetzner-cloud-credentials /path/to/your/hetzner_cloud.ini \
  -d '*.example.eu'

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_cloud-1.0.2.tar.gz (14.2 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_cloud-1.0.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_hetzner_cloud-1.0.2.tar.gz.

File metadata

File hashes

Hashes for certbot_dns_hetzner_cloud-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1812b2e18519d2326b6c80513f1275421be0895d4a89ff688547c740b2480872
MD5 a5a100cb21197a69aafa4a873b1af6bc
BLAKE2b-256 95ac3b623db6e10b2a9f552a2f0b6b546999c603749bc44e12a5d2c4e0868bfe

See more details on using hashes here.

Provenance

The following attestation bundles were made for certbot_dns_hetzner_cloud-1.0.2.tar.gz:

Publisher: publish-pipy.yml on rolschewsky/certbot-dns-hetzner-cloud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file certbot_dns_hetzner_cloud-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_hetzner_cloud-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a0ed8a7dad6eea78b80010e1773e3f3f57643c0859cef9474e414c9ddcf137d
MD5 97b2df316ef743249b6ca23e449a4e1d
BLAKE2b-256 6b96708dd7cf8ab03ec8b8c175b8b482a37d7da3dabc4967dd9ee31919a3d54c

See more details on using hashes here.

Provenance

The following attestation bundles were made for certbot_dns_hetzner_cloud-1.0.2-py3-none-any.whl:

Publisher: publish-pipy.yml on rolschewsky/certbot-dns-hetzner-cloud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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