Skip to main content

DNScale DNS Authenticator plugin for Certbot

Project description

certbot-dns-dnscale

DNScale DNS Authenticator plugin for certbot.

Automates Let's Encrypt DNS-01 challenges by creating and cleaning up TXT records via the DNScale API.

Installation

pip install certbot-dns-dnscale

Or install from source:

pip install git+https://github.com/dnscaleou/certbot-dns-dnscale.git

Credentials

Create an API key at dnscale.eu with the following scopes:

  • zones:read
  • records:read
  • records:write

Save it to a credentials file:

# /etc/letsencrypt/dnscale.ini
dns_dnscale_api_token = your-api-token-here

Restrict permissions:

chmod 600 /etc/letsencrypt/dnscale.ini

Usage

Obtain a certificate

certbot certonly \
  --authenticator dns-dnscale \
  --dns-dnscale-credentials /etc/letsencrypt/dnscale.ini \
  -d example.com \
  -d "*.example.com"

Renew certificates

certbot renew

Certbot remembers the authenticator used for each certificate and will automatically use the DNScale plugin for renewal.

Propagation delay

By default, the plugin waits 60 seconds for DNS propagation. Adjust if needed:

certbot certonly \
  --authenticator dns-dnscale \
  --dns-dnscale-credentials /etc/letsencrypt/dnscale.ini \
  --dns-dnscale-propagation-seconds 120 \
  -d example.com

Docker

docker run --rm \
  -v /etc/letsencrypt:/etc/letsencrypt \
  certbot/certbot \
  pip install certbot-dns-dnscale && \
  certbot certonly \
    --authenticator dns-dnscale \
    --dns-dnscale-credentials /etc/letsencrypt/dnscale.ini \
    -d example.com

Configuration

Option Description Default
--dns-dnscale-credentials Path to credentials INI file Required
--dns-dnscale-propagation-seconds Seconds to wait for DNS propagation 60

Credentials file options

Key Description Required
dns_dnscale_api_token DNScale API token Yes
dns_dnscale_api_url API base URL No (default: https://api.dnscale.eu)

License

Apache License 2.0. See LICENSE.

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_dnscale-1.0.1.tar.gz (9.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_dnscale-1.0.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for certbot_dns_dnscale-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2d4ea2cd9a593a8b2f4dbb705b67b77d1669478d015477f8e05c4e64f22c56d4
MD5 7ea5f15e37a76b2b5b9a10685f29dea9
BLAKE2b-256 a2cfbfcefaf29363cc98fe48e93b29fe2e909beebc9ae5b4ec0b001fcc0c0282

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for certbot_dns_dnscale-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9ea3ad3703750591507573ce0d9cdb300de4dabc0e1cda40fa8befbf2bf4bbd
MD5 840df6e41f4cffe155faf3a7149a6cbe
BLAKE2b-256 8e50416ca413f4103a25580ffdf139f314a586089d8d9e757719c8729f0d2607

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