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

Uploaded Python 3

File details

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

File metadata

  • Download URL: certbot_dns_dnscale-1.0.0.tar.gz
  • Upload date:
  • Size: 9.6 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.0.tar.gz
Algorithm Hash digest
SHA256 4b47e0f4aa717a8ce9b4f61ea5d51a7dd8c48487603fb0cc1fa2a71ebb76b866
MD5 c8f0a077459c196b100f0d952aa137f8
BLAKE2b-256 d697d533a267f7decaac44777a6da409d2fce8edd8295b78739c7a45e90985b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for certbot_dns_dnscale-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d411838a9841e1f4a63e856e3331b3562eb3dc56431aa42f8861a8dbeee7193
MD5 f56ab705a96f58ec8f5a8e7ddfb11813
BLAKE2b-256 826860a910921dbed0685a80db3354a8f82ec31c9d790fefc9742655bc2c4b5e

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