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.2.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.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: certbot_dns_dnscale-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 928a36d394e99cf8bb1ce2bf5cce9ba449d6c10a5947f86b752f4c5490deb475
MD5 f054fbd1acf836e1ca916f8a5e544c72
BLAKE2b-256 c859f9625262be8d01e185e16045ce4a67f9aba2a8a3e2c00cb10b068a6645a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for certbot_dns_dnscale-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 474fa83cd635bdd99fd39d2cd51f7d471252af0ae3d1e5cd4998016a54d0cb3e
MD5 d85641de8af226636bd1e16711ff4a6f
BLAKE2b-256 2a364b5a1eb9167b74424f024e40538d71f397a85c9ccc415ebde3dbec3cd82d

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