Skip to main content

Manage domains hosted on All-Inkl.com through the KAS server API

Project description

Build Status Coverage Status PyPI Version

kasserver - Manage domains hosted on All-Inkl.com through the KAS server API

This project consists of the Python library kasserver and a few command line utilities to manage domains of the German webhoster All-Inkl.com through their KAS server API.

At the moment the main focus is managing DNS record as this allows to automate the creation of Let's Encrypt (wildcard) certificates with the ACME DNS-01 challenge.

Installation

kasserver (and its dependencies) can be installed from PyPI with: pip3 install kasserver

Authentication

Both library and command line utilities require access to the KAS credentials. Username and password are read from the KASSERVER_USER and KASSERVER_PASSWORD environment variables or from the ~/.netrc file:

machine kasapi.kasserver.com
login USERNAME
password PASSWORD

The file must be accessible only by your user account: chmod 600 ~/.netrc.

Scripts

kasserver-dns

A generic program to manage DNS records.

DNS records can be listed with:

$ kasserver-dns list example.com
ID C Zone        Name Type  Data               Aux
 1 Y example.com      A     X.X.X.X            0
 0 N example.com      NS    ns5.kasserver.com. 0
 0 N example.com      NS    ns6.kasserver.com. 0
 0 N example.com www  CNAME example.com        0

A new DNS record is added with:

kasserver-dns add test.example.com CNAME example.com

An existing DNS record is removed with:

kasserver-dns remove test.example.com CNAME

kasserver-dns-*

The following programs are designed to be used together with ACME clients to automate DNS record creation/removal as it is required by a Let's Encryt ACME DNS-01 challenge for automatic certificate renewal.

kasserver-dns-certbot

This program is designed to be used with Certbot:

certbot certonly -d foo.exmaple.com --preferred-challenges dns \
                 --manual --manual-auth-hook kasserver-dns-certbot \
                          --manual-cleanup-hook kasserver-dns-certbot \
                 -m invalid@example.com

kasserver-dns-lego

This program is designed to be used with lego:

EXEC_PATH=kasserver-dns-lego lego --dns exec \
    --domains foo.example.com --email invalid@example.com run

License

This projected is licensed under the terms of the MIT license.

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

kasserver-0.4.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

kasserver-0.4.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file kasserver-0.4.0.tar.gz.

File metadata

  • Download URL: kasserver-0.4.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for kasserver-0.4.0.tar.gz
Algorithm Hash digest
SHA256 63b293b5a9c3bd628ba76e158189b8025f93f773a7736f0b6f4a22e114e7a38d
MD5 3db44fde0c4464f13951eff90e7ddb08
BLAKE2b-256 f5db97fcb8761f4872b59e70aefd7e973c40b60412d3dd7f04dc84530eb7ec4c

See more details on using hashes here.

File details

Details for the file kasserver-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: kasserver-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for kasserver-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f8b48fd3d820d0bde2f5249bc0a37a31065d89a29f19e9d85ff9911cd3a7d5c
MD5 03572bc9cc2643c1c6fc7b2e52d4c213
BLAKE2b-256 5477799167c43ae424461b101da1edd1438e6e48ea1d8723427267e65a1f6dfe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page