Skip to main content

Dynu DNS Authenticator plugin for Certbot

Project description

certbot-dns-dynu

Dynu DNS Authenticator plugin for Certbot.

This plugin is built from the ground up and follows the development style and life-cycle of other certbot-dns-* plugins found in the Official Certbot Repository.

Installation

  • Install

    pip install --upgrade certbot
    pip install certbot-dns-dynu
    
  • Verify

    $ certbot plugins --text
    
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    * dns-dynu
    Description: Obtain certificates using a DNS TXT record (if you are using Dynu
    for DNS.)
    Interfaces: Authenticator, Plugin
    Entry point: dns-dynu = certbot_dns_dynu.dns_dynu:Authenticator
    
    ...
    ...
    

Configuration

  • The credentials file e.g. ~/dynu-credentials.ini should look like this:

    dns_dynu_auth_token = AbCbASsd!@34
    

Usage

  • Command line args for certbot

    certbot ... \
    --authenticator dns-dynu  \
    --dns-dynu-credentials ~/dynu-credentials.ini \
    ...
    
  • Example

    certbot certonly \
    --authenticator dns-dynu --dns-dynu-credentials ./test/dynu-credentials.ini
    

FAQ

Development

Local

  • Create a virtual env, install the plugin (editable mode), spawn the environment and run the test:

    python3 -m venv .venv
    . .venv/bin/activate
    python -m pip install --upgrade pip
    pip install -e .
    ./test/run_certonly.sh <action> "<domain> " "<email>"
    

Dev Container

  • Install ms-vscode-remote.remote-containers plugin in vscode
  • Press Ctrl + Shift + p or Cmd + Shift + p
  • Type Reopen in Container
  • Select the option from Dev Container
  • vscode will pull all the required dependencies and setup the environment for development

License

Copyright (c) 2021 Bikramjeet Singh

Credits

PowerDNS

dns-lexicon

Helpful links

DNS Plugin list

acme.sh

dynu with acme.sh

dynu api

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file certbot_dns_dynu-0.0.6.post2502111739272536-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_dynu-0.0.6.post2502111739272536-py3-none-any.whl
Algorithm Hash digest
SHA256 3bca6343a5e962bdc666301228dcc73c6b3ebef9f2921d8afe1a56f1450d9229
MD5 2cca4e433d005352289584841416b730
BLAKE2b-256 5d3879b69fa1d48d68fc5614e82886bdb43b70f0c421169b3f35bc0276a11d43

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