Certbot DNS Plugin for Hetzner Cloud DNS
Project description
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file certbot_dns_hetzner_cloud-1.0.4.tar.gz.
File metadata
- Download URL: certbot_dns_hetzner_cloud-1.0.4.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3434ba04973b4d0e3f3e35d48fb79031f73e29c1121333d0b54f47d51ef11e37
|
|
| MD5 |
b631a50350ac449cc0d1f9e7142d1098
|
|
| BLAKE2b-256 |
fa999aa34f33fb5308b53c2af5e8c1655861f18bf3e3b0d6c8cca9860bc714f3
|
Provenance
The following attestation bundles were made for certbot_dns_hetzner_cloud-1.0.4.tar.gz:
Publisher:
publish-pipy.yml on rolschewsky/certbot-dns-hetzner-cloud
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
certbot_dns_hetzner_cloud-1.0.4.tar.gz -
Subject digest:
3434ba04973b4d0e3f3e35d48fb79031f73e29c1121333d0b54f47d51ef11e37 - Sigstore transparency entry: 598063145
- Sigstore integration time:
-
Permalink:
rolschewsky/certbot-dns-hetzner-cloud@37b6e82dac53b9ef0197769be0566b19f18d2fce -
Branch / Tag:
refs/heads/main - Owner: https://github.com/rolschewsky
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pipy.yml@37b6e82dac53b9ef0197769be0566b19f18d2fce -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file certbot_dns_hetzner_cloud-1.0.4-py3-none-any.whl.
File metadata
- Download URL: certbot_dns_hetzner_cloud-1.0.4-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06b23b57ff1187d05e4dc0af0a0391a3b859ec46b695f622c69de79eabf4300a
|
|
| MD5 |
a338741175e19f108236ff3da6908b5b
|
|
| BLAKE2b-256 |
69d8013f1c1c2b4b3cd5fbc8093e02b5ffec4785f37e6ca3b7718f169fa5ecc8
|
Provenance
The following attestation bundles were made for certbot_dns_hetzner_cloud-1.0.4-py3-none-any.whl:
Publisher:
publish-pipy.yml on rolschewsky/certbot-dns-hetzner-cloud
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
certbot_dns_hetzner_cloud-1.0.4-py3-none-any.whl -
Subject digest:
06b23b57ff1187d05e4dc0af0a0391a3b859ec46b695f622c69de79eabf4300a - Sigstore transparency entry: 598063157
- Sigstore integration time:
-
Permalink:
rolschewsky/certbot-dns-hetzner-cloud@37b6e82dac53b9ef0197769be0566b19f18d2fce -
Branch / Tag:
refs/heads/main - Owner: https://github.com/rolschewsky
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pipy.yml@37b6e82dac53b9ef0197769be0566b19f18d2fce -
Trigger Event:
workflow_run
-
Statement type: