Skip to main content

Certbot DNS-01 authenticator plugin for DomU DNS

Project description

certbot-dns-domudns

Certbot DNS-01 authenticator plugin for DomU DNS.

Automatically creates and removes _acme-challenge TXT records via the DomU DNS REST API to obtain Let's Encrypt certificates.

Installation

pip install certbot-dns-domudns

Or from source:

git clone https://github.com/mw7101/certbot-dns-domudns.git
cd certbot-dns-domudns
pip install .

Credentials

Create a Named API Key in the DomU DNS dashboard: Settings → Sicherheit → API-Schlüssel → + Neuer API-Schlüssel

Then create /etc/letsencrypt/domudns.ini:

dns_domudns_url = http://192.168.100.151
dns_domudns_api_key = <named api key>
chmod 600 /etc/letsencrypt/domudns.ini

Usage

# Staging (for testing)
certbot certonly \
  --authenticator dns-domudns \
  --dns-domudns-credentials /etc/letsencrypt/domudns.ini \
  --server https://acme-staging-v02.api.letsencrypt.org/directory \
  -d example.com -d '*.example.com'

# Production
certbot certonly \
  --authenticator dns-domudns \
  --dns-domudns-credentials /etc/letsencrypt/domudns.ini \
  -d example.com -d '*.example.com'

Configuration

Credential key Description
dns_domudns_url Base URL of your DomU DNS instance (no trailing slash)
dns_domudns_api_key Named API key from the DomU DNS dashboard

Requirements

  • Python >= 3.8
  • certbot >= 1.18.0
  • requests >= 2.25.0
  • A running DomU DNS instance

How it works

  1. Certbot calls _perform() with the validation token
  2. Plugin strips _acme-challenge. prefix and trailing dot from the FQDN
  3. POST /api/acme/dns-01/present stores the TXT record in DomU DNS
  4. DomU DNS answers _acme-challenge.<domain> TXT queries with the token
  5. After validation, _cleanup() calls POST /api/acme/dns-01/cleanup

License

MIT

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_domudns-1.0.1.tar.gz (4.7 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_domudns-1.0.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_domudns-1.0.1.tar.gz.

File metadata

  • Download URL: certbot_dns_domudns-1.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for certbot_dns_domudns-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6df5f67626e79f352d7bc8db1fef2665182c722d1cbbbc3087095b8e73ec0103
MD5 c2e6429fdcbda311b72c9c6bbc8fec44
BLAKE2b-256 b4eb8de3cffb4e94d81fc4558354a4d94c524266f859dc67246d81c632380ff3

See more details on using hashes here.

File details

Details for the file certbot_dns_domudns-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_domudns-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fdf6374d1535a08f13a3241f72521ef6bba6a84554e46306b9e97b076597c38
MD5 324e169a4a401a229125af58e8f3bf4d
BLAKE2b-256 eaa39f29b518737ea6305865821a464b4bf82a6bb48043e8002a29797e3ae9ee

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