This is a plugin for Certbot that uses the Njalla API to allow customers to prove control of a domain name.
-
Obtain an Njalla API token (found in the settings)
-
Install the plugin using
pip3 install certbot-dns-njalla, or if you are usingsudowith certbot usesudo -H pip3 install certbot-dns-njalla -
Create a
njalla.iniconfig file with the following contents and applychmod 600 njalla.inion it:dns_njalla_token=<token>Replace
<token>with your Njalla API key and ensure permissions are set to disallow access to other users. -
Run
certbotand 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.comif you want to generate it as a wildcard certificate.
Add additional options as required to specify an installation plugin etc.
Run the following command replacing <path> with the path to the folder containing the setup.py file (./ when in repository root):
pip3 install -e <path>Execute the following command inside the root-directory
python -m unittest discover -p '*_test.py'