Skip to main content

Contabo DNS Authenticator plugin for Certbot

Project description

Certbot Contabo authenticator plugin

This is a Certbot plugin to automate DNS-01 challenges for domains whose DNS is managed by Contabo. It works by interacting with the Contabo web interface through web scraping, as Contabo does not currently offer an official API for DNS management.


Important

  • Web Scraping: This plugin relies on web scraping Contabo's website. If Contabo changes its website structure, this plugin may break until it's updated. The plugin is designed based on their current interface, which has been relatively stable for years.
  • NO 2FA SUPPORT: This plugin does not support Contabo accounts with Two-Factor Authentication (2FA) enabled. You must use an account without 2FA for this plugin to work. Attempting to use it with a 2FA-enabled account will result in login failure (Might be supported in the future, but currently not available).

Installation

You can install the plugin using pip:

pip install certbot-dns-contabo

Usage

Create a credentials file like this, for example using nano /etc/letsencrypt/contabo.ini:

dns_contabo_email = your-contabo-email@example.com
dns_contabo_password = your-contabo-password

Since this file contains sensitive credentials, protect it by restricting its permissions:

sudo chmod 600  /etc/letsencrypt/contabo.ini

(Replace /etc/letsencrypt/contabo.ini if you saved it in a different location.)

To request a certificate, use Certbot with the dns-contabo authenticator.

Example for example.com and *.example.com (wildcard):

sudo certbot certonly \
  --authenticator dns-contabo \
  --dns-contabo-credentials /etc/letsencrypt/contabo.ini \
  -d example.com \
  -d "*.example.com" 

Disclaimer

I am not affiliated with Contabo in any way. This plugin can stop working at any time if Contabo changes their website, which could even lead to stuff breaking on your Contabo account.

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_contabo-0.1.0.tar.gz (3.4 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_contabo-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_contabo-0.1.0.tar.gz.

File metadata

  • Download URL: certbot_dns_contabo-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for certbot_dns_contabo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd0bd02e37f9827f39e14c8d2d6126a6f4c94269fbb3ce30d39b4be946f22f9e
MD5 142794fa6913095fea07320d789f0b97
BLAKE2b-256 b1e19bb394c9da8b28d2bc654bf314d0066c544dd64dc82a1bd31c1798f73d7b

See more details on using hashes here.

File details

Details for the file certbot_dns_contabo-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_contabo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 deecfd667d03e36b2677a02f1538e61808d807cdfc2479a3877ed0cc90d28712
MD5 6cfbffbb275246a5facf54d8767d8c21
BLAKE2b-256 b211fd926fdfa1d3a21422087b158f9a260b7ee4165af652ce89a5641198d4b5

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