Skip to main content

Domain registrar agnostic authenticator plugin for certbot

Project description

certbot-dns-local

Domain registrar agnostic authenticator plugin for certbot

An authenticator plugin for certbot to support Let's Encrypt DNS challenges (dns-01) for domains managed by any registrar.

Why use this authenticator plugin?

  • There is no other authenticator plugin for your domain registrar.
  • Some domain registrars do not support fine-grained API permissions. Storing domain registrar credentials in a file on a web server might pose a security risk to all your domains.
  • Migrating from one domain registrar to another does not require a new authenticator plugin.

Installation

  1. Optionally install the netfilter_queue library. On Debian-based systems, run:

    apt install libnetfilter-queue-dev
    

    The library enables support for DNS challenge authentication if UDP port 53 is already occupied.

  2. Plugin installation:

    • If you are using certbot from your distribution repository or from the Python Package Index:
      pip install certbot-dns-local
      
    • If you are using cerbot-auto, clone the repository, cd into the folder and run:
      /opt/eff.org/certbot/venv/bin/pip install .
      
  3. Set up a DNS NS record for _acme-challenge.yourdomain.com pointing to the server which certbot is running on.
    For example:

    _acme-challenge.yourdomain.com. 300 IN NS yourdomain.com.
    

    Such a record has to be created for each subdomain which you want to obtain a certificate for.

Usage

A new certificate can be requested as follows:

certbot certonly -a certbot-dns-local:dns-local -d yourdomain.com -d '*.yourdomain.com'

Renewals will automatically be performed using the same authenticator by certbot.

Behind the curtain

Behind the curtain, the plugin will open a UDP server on port 53 in order to serve the DNS validations. In case binding to port 53 fails because it is already occupied by another application, it will fall back to packet interception using the netfilter_queue library.

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-local-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

certbot_dns_local-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file certbot-dns-local-0.1.0.tar.gz.

File metadata

  • Download URL: certbot-dns-local-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for certbot-dns-local-0.1.0.tar.gz
Algorithm Hash digest
SHA256 75f408f3a010d44c26c25f9d721b38a174600adec3d37d50d7d209560cab2241
MD5 c0e3b61b78ae702c89b9c0b10e8601cc
BLAKE2b-256 e8f67a94cacf11b360bfd7f87ada451f0abdf9f43be6d2292bf1fef79e84243d

See more details on using hashes here.

File details

Details for the file certbot_dns_local-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: certbot_dns_local-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for certbot_dns_local-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29c21f4bbde60ebd6d0828b594aa6af6be5f4b43628f958b77a66daa95256a32
MD5 32dabb154962392d49aecb37512c8de5
BLAKE2b-256 9c2607e55e877989f2a3ab2cde9a6499f2462293031afb1c5c38dd7aa60f458f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page