Skip to main content

Njalla DNS Authenticator plugin for Certbot

Project description

Certbot plugin for authentication using Njalla

This is a plugin for Certbot that uses the Njalla API to allow customers to prove control of a domain name.

Installation

Python / pip

Use this method if you have also installed certbot via pip. Install the plugin using

pip3 install certbot-dns-njalla

If you are using sudo with certbot use sudo -H pip3 install certbot-dns-njalla instead.

Snap

Use this method if you have also installed certbot via snap.

snap install certbot-dns-njalla

Now connect the certbot installation with the njalla plugin installation.

sudo snap connect certbot:plugin certbot-dns-njalla

Usage

  1. Make sure the plugin is installed and connected. You can verify this by running certbot plugins. dns-njalla should be in the list.

  2. Obtain an Njalla API token (found in the settings)

  3. Create a njalla.ini config file with the following contents and apply chmod 600 njalla.ini on it:

    dns_njalla_token=<token>
    

    Replace <token> with your Njalla API key and ensure permissions are set to disallow access to other users.

  4. Run certbot and direct it to use the plugin for authentication and to use the config file previously created:

    certbot -a dns-njalla --dns-njalla-credentials njalla.ini -d domain.com
    

    Use *.domain.com if you want to generate it as a wildcard certificate.
    Add additional options as required to specify an installation plugin etc.

    Remember to use the -i flag if you want to use an additional installer plugin, like -i apache or -i nginx.

Development

Install local files as python package

Run the following command in the repository root (so you are in the folder containing the setup.py):

pip3 install -e ./

Build snap locally

By default a snap is built automatically by snapcraft if there are changes in the git repo. But here is what to do to test the build locally.

Do the basic setup described in the certbot snap readme. (Mainly installing setting up lxd) Run the following command in the repository root (so you are in the folder containing the setup.py):

sh generate_dnsplugins_snapcraft.sh
snapcraft clean --use-lxd
snapcraft --debug --use-lxd

Run tests

Execute the following command inside the root-directory

python -m unittest discover -p '*_test.py'

Distribution

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_njalla-2.0.0.tar.gz (8.1 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_njalla-2.0.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_njalla-2.0.0.tar.gz.

File metadata

  • Download URL: certbot_dns_njalla-2.0.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for certbot_dns_njalla-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c4bd3faf1eba78a68e03b2d82c3c148c8ee88860c5c0a727724857e8f06a27b1
MD5 9d854ec339e687ee997c22876c07ef20
BLAKE2b-256 416d3239e1e35325d141f9d2da86918fab4ee19a6f1043d8d9bdcd43a913051e

See more details on using hashes here.

File details

Details for the file certbot_dns_njalla-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_njalla-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a0d7864254a6d9b7145abf4ead21ccd449f823cea229d43ab027375be44c8ad
MD5 2ce758f7f9cbc813302dac1b34d8793b
BLAKE2b-256 3b9e35c9d22a0046a4d98a232964f959369f5e848f905e1690f72851c2476500

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