Skip to main content

certbot-dns-inwx

INWX DNS authenticator plugin for certbot

An authenticator plugin for certbot to support Let's Encrypt DNS challenges (dns-01) for domains managed by the nameservers of InterNetworX (INWX).

Requirements

  • certbot (>=3.0.0)
  • inwx-domrobot (>=3.2.0)
  • setuptools (for manual installation; e.g. python3-setuptools)
  • optional: idna (>=3.0) for support of internationalized domain names

For older Ubuntu distributions check out this PPA: ppa:certbot/certbot

Installation

  1. First install the plugin:
  • Via Snap (requires certbot to be installed via snap):
    snap install certbot-dns-inwx
    snap set certbot trust-plugin-with-root=ok
    snap connect certbot:plugin certbot-dns-inwx
    snap connect certbot-dns-inwx:certbot-metadata certbot:certbot-metadata
    
  • Via pip:
    pip install certbot-dns-inwx
    
  1. Configure it with your INWX API Login Details:

    vim /etc/letsencrypt/inwx.cfg
    

    with the following content (also see inwx.cfg of the repository):

    dns_inwx_url           = https://api.domrobot.com
    dns_inwx_username      = your_username
    dns_inwx_password      = """your_password"""
    dns_inwx_shared_secret = your_shared_secret optional
    

    It is recommended to create a subaccount in the INWX interface and restrict this account to the 'DNS management' role. This prevents the possible loss of your domains in case your account credentials are stolen.

    The shared secret is your INWX 2FA OTP key. It is shown to you when setting up the 2FA. It is not the 6 digit code you need to enter when siging in. If you are not using 2FA, simply keep the value the way it is. For general syntax requirements of this file, see here.

  2. Make sure the file is only readable by root! Otherwise, all your domains might be in danger:

    chmod 0600 /etc/letsencrypt/inwx.cfg
    

Usage

Request new certificates via a certbot invocation like this:

certbot certonly -a dns-inwx -d sub.domain.tld -d *.wildcard.tld

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

Command Line Options

 --dns-inwx-propagation-seconds DNS_INWX_PROPAGATION_SECONDS
                        The number of seconds to wait for DNS to propagate
                        before asking the ACME server to verify the DNS
                        record. (default: 60)
 --dns-inwx-credentials DNS_INWX_CREDENTIALS
                        Path to INWX account credentials INI file (default:
                        /etc/letsencrypt/inwx.cfg)
 --dns-inwx-follow-cnames DNS_INWX_FOLLOW_CNAMES
                        Shall the plugin follow CNAME redirects on validation
                        records? (default: True)
                        This command line option is only exposed if 
                        dnspython is installed.

See also certbot --help dns-inwx for further information.

CNAME Redirects

This plugin supports redirections on the DNS-01 validation records using CNAME records.

For example, you can have a domain a.tld which is not necessarily managed by INWX and possibly may not be automated via certbot. Additionally, you have a domain b.tld which is managed by INWX.

An easy solution to automate certificate retrieval for a.tld is to add a CNAME record for the name _acme-challenge.a.tld to a.tld which is pointing to i.e. _a_validation.b.tld in your providers web interface.

A command like certbot -a dns-inwx -d a.tld will then make certbot place its validation token at _a_validation.b.tld via INWX and your validation for a.tld succeeds.

NOTE: This is an optional feature and requires dnspython to be installed. To install it use your distribution repository or i.e. pip install dnspython. The snap package already ships with it.

Metadata

Release files for certbot-dns-inwx 3.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for certbot-dns-inwx 3.0.3
File Size Uploaded
certbot_dns_inwx-3.0.3.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for certbot-dns-inwx 3.0.3
File Interpreter ABI Platform
certbot_dns_inwx-3.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 29.4 kB

Release files / certbot_dns_inwx-3.0.3.tar.gz

Download URL certbot_dns_inwx-3.0.3.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d4f16ce733bf71e47bb94f0a9fb0686514cf88220a5386c65032160d7d598754
BLAKE2b-256 checksum
How to use checksums
3948962c15f55c8bcee031506347971bbc4afa15bb1b46fe44ac869731550d20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / certbot_dns_inwx-3.0.3-py3-none-any.whl

Download URL certbot_dns_inwx-3.0.3-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c808151413690d7ce60c2fb298248b383a197fd1d3dfba09c926ac5fbba2976f
BLAKE2b-256 checksum
How to use checksums
4ec108660d23520f7a380d39f4e85ca1a70f11563210fd6fd53fced94336edc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

3.0.3 This release

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page