Skip to main content

certbot-dns-gigahost

Gigahost DNS Authenticator plugin for Certbot.

This plugin automates the process of completing a dns-01 challenge by creating, and subsequently removing, TXT records using the Gigahost API.

Named Arguments

Argument Description
--dns-gigahost-credentials Gigahost credentials INI file. (required)
--dns-gigahost-propagation-seconds The number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (Default: 120)

Installation

pip install certbot-dns-gigahost

Credentials

Use of this plugin requires a configuration file containing a Gigahost API key.

Create an API key in the Gigahost portal (Flux) with read/write access to DNS for the zones you want to manage. The key looks like flux_live_....

See the Gigahost API documentation for more information.

An example credentials.ini file:

dns_gigahost_api_token=flux_live_xxxxxxxxxxxxxxxxxxxxxxxx

The path to this file can be provided interactively or using the --dns-gigahost-credentials command-line argument. Certbot records the path to this file for use during renewal, but does not store the file's contents.

CAUTION: You should protect this API key as you would the password to your Gigahost account. Users who can read this file can use the key to issue arbitrary API calls on your behalf, scoped to the permissions granted to the key. Users who can cause Certbot to run using this key can complete a dns-01 challenge to acquire new certificates or revoke existing certificates for associated domains, even if those domains aren't being managed by this server.

Certbot will emit a warning if it detects that the credentials file can be accessed by other users on your system. The warning reads "Unsafe permissions on credentials configuration file", followed by the path to the credentials file. This warning will be emitted each time Certbot uses the credentials file, including for renewal, and cannot be silenced except by addressing the issue (e.g., by using a command like chmod 600 to restrict access to the file).

Examples

Acquire a certificate

To acquire a single certificate for both example.com and www.example.com, waiting 120 seconds (the default) for DNS propagation:

certbot certonly \
  --authenticator dns-gigahost \
  --dns-gigahost-credentials ~/.secrets/certbot/gigahost.ini \
  --dns-gigahost-propagation-seconds 120 \
  -d example.com \
  -d www.example.com

Wildcard certificate

certbot certonly \
  --authenticator dns-gigahost \
  --dns-gigahost-credentials ~/.secrets/certbot/gigahost.ini \
  -d example.com \
  -d "*.example.com"

Secure your credentials file

mkdir -p ~/.secrets/certbot
chmod 700 ~/.secrets/certbot

cat > ~/.secrets/certbot/gigahost.ini << EOF
dns_gigahost_api_token=flux_live_xxxxxxxxxxxxxxxxxxxxxxxx
EOF

chmod 600 ~/.secrets/certbot/gigahost.ini

Docker

A Docker image can be built from the included Dockerfile:

docker build -t certbot-dns-gigahost .

Example usage:

docker run --rm \
  -v /etc/letsencrypt:/etc/letsencrypt \
  -v /var/lib/letsencrypt:/var/lib/letsencrypt \
  certbot-dns-gigahost \
  certonly \
  --authenticator dns-gigahost \
  --dns-gigahost-credentials /etc/letsencrypt/gigahost.ini \
  --agree-tos \
  --email "email@example.com" \
  -d example.com

Automatic renewal

Certbot will automatically use the plugin and credentials file during renewal. No additional configuration is needed after the initial certificate issuance. You can test renewal with:

certbot renew --dry-run

How it works

  1. When Certbot needs to validate domain ownership, the plugin authenticates with the Gigahost API using your API key as a Bearer token.
  2. It looks up the DNS zone for the domain being validated.
  3. It creates a _acme-challenge TXT record with the validation token.
  4. After Certbot verifies the challenge, the plugin removes that specific TXT record.

Development

# Clone the repository
git clone https://github.com/gigahost/certbot-dns-gigahost.git
cd certbot-dns-gigahost

# Install in development mode
pip install -e .

# Verify the plugin is recognized by certbot
certbot plugins

License

Apache License 2.0. See LICENSE for details.

Release files for certbot-dns-gigahost 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for certbot-dns-gigahost 0.1.1
File Size Uploaded
certbot_dns_gigahost-0.1.1.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for certbot-dns-gigahost 0.1.1
File Interpreter ABI Platform
certbot_dns_gigahost-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.8 kB

Release files / certbot_dns_gigahost-0.1.1.tar.gz

Download URL certbot_dns_gigahost-0.1.1.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
84839646dc1dbc7748a1a59d5f14242e97d4887f6bb38d586a1d751ec7a28d82
BLAKE2b-256 checksum
How to use checksums
dfdbbbb1a5abdef7fab887355c0b7245649324a919d92654d53cdc5705ffd04c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / certbot_dns_gigahost-0.1.1-py3-none-any.whl

Download URL certbot_dns_gigahost-0.1.1-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec6cbf121b43b8971b66ab1eea0e657ed8d558fdfd5615e962e14d96f4de7a56
BLAKE2b-256 checksum
How to use checksums
9097a5eaff2ed1d1bcb05cae3ba98f3edbd8817dae1546f4a9f32d7e1c1af5bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page