Hendrik Hogertz d3594bb33b
All checks were successful
Tests / test (3.10) (push) Successful in 15s
Tests / test (3.11) (push) Successful in 15s
Tests / test (3.12) (push) Successful in 16s
Tests / test (3.13) (push) Successful in 15s
Tests / test (3.8) (push) Successful in 19s
Tests / test (3.9) (push) Successful in 19s
Update README.md
2025-11-24 13:55:32 +01:00
2025-11-24 13:37:19 +01:00
2025-11-24 10:02:56 +01:00
2025-11-20 03:41:33 +01:00
2025-11-20 02:47:11 +01:00
2025-11-24 10:02:56 +01:00
2025-11-24 13:55:32 +01:00
2025-11-24 10:02:56 +01:00

certbot-dns-corenetworks

Python Version Test Status Release Status

Core Networks DNS Authenticator plugin for Certbot

This plugin automates the process of completing a dns-01 challenge by creating, and subsequently removing, TXT records using the Core Networks beta API.

Requirements

  • Python >= 3.8
  • certbot >= 2.0.0

Configuration of Core Networks

In the Allgemein -> Profil -> API-Benutzer you have to have a user with a login name and password.

See Core Networks API Documentation for more information.

Installation

From Gitea PyPI

pip3 install certbot-dns-corenetworks --index-url https://git.hogertz.eu/api/packages/hendrik-hog/pypi/simple

From source

pip3 install git+https://git.hogertz.eu/hendrik-hog/certbot-dns-corenetworks.git

Named Arguments

To start using DNS authentication for Core Networks, pass the following arguments on certbot's command line:

Argument Description
--authenticator dns-corenetworks Select the authenticator plugin (Required)
--dns-corenetworks-credentials Core Networks credentials INI file (Required)
--dns-corenetworks-propagation-seconds Waiting time for DNS to propagate before asking the ACME server to verify the DNS record (Default: 30, Recommended: >= 60)

Credentials

An example credentials.ini file:

dns_corenetworks_username = myremoteuser
dns_corenetworks_password = verysecureremoteuserpassword

The path to this file can be provided interactively or using the --dns-corenetworks-credentials command-line argument. Certbot records the path to this file for use during renewal, but does not store the file's contents.

CAUTION: You should protect these API credentials as you would the password to your Core Networks account. Users who can read this file can use these credentials to issue arbitrary API calls on your behalf. Users who can cause Certbot to run using these credentials can complete a dns-01 challenge to acquire new certificates or revoke existing certificates for associated domains, even if those domains aren't being managed by this server.

Certbot will emit a warning if it detects that the credentials file can be accessed by other users on your system. The warning reads "Unsafe permissions on credentials configuration file", followed by the path to the credentials file. This warning will be emitted each time Certbot uses the credentials file, including for renewal, and cannot be silenced except by addressing the issue (e.g., by using a command like chmod 600 to restrict access to the file).

Examples

Acquire a certificate for a domain

To acquire a single certificate for example.com:

certbot certonly \
  --authenticator dns-corenetworks \
  --dns-corenetworks-credentials /etc/letsencrypt/.secrets/corenetworks.ini \
  --dns-corenetworks-propagation-seconds 60 \
  --agree-tos \
  -d example.com

Acquire a wildcard certificate

To acquire a certificate for both example.com and *.example.com, waiting 60 seconds for DNS propagation:

certbot certonly \
  --authenticator dns-corenetworks \
  --dns-corenetworks-credentials /etc/letsencrypt/.secrets/corenetworks.ini \
  --dns-corenetworks-propagation-seconds 60 \
  --agree-tos \
  -d 'example.com' \
  -d '*.example.com'

Development

Setup development environment

# Clone the repository
git clone https://git.hogertz.eu/hendrik-hog/certbot-dns-corenetworks.git
cd certbot-dns-corenetworks
uv sync --all-extras

Running tests

# Run tests with pytest
pytest

# Run tests with coverage
pytest --cov=certbot_dns_corenetworks --cov-report=html

Credits

Original author: Masin Al-Dujaili Maintainer: Hendrik Hogertz

Description
A certbot plugin for enabling DNS authentication with Core Networks
Readme Apache-2.0 263 KiB
2025-11-24 10:07:29 +01:00
Languages
Python 100%