Skip to main content

Loopia DNS authentication plugin for Certbot

Project description

This allows automatic completion of Certbot’s DNS01 challange for domains managed on Loopia DNS.

Installing

$ sudo pip install certbot-dns-loopia

Note that you should normally install this as root, unless you know what you are doing.

Usage

The plugin requires the following permissions enabled for your Loopia API user:

  • addSubdomain (I can’t test if it’s required)

  • addZoneRecord

  • getZoneRecords

  • removeSubdomain

  • removeZoneRecord

To use the authenticator you need to provide some required options:

--dns-loopia-credentials (required)

INI file with user and password for your Loopia API user. user normally has the format user@loopiaapi.

The credentials file must have the folling format:

dns_loopia_user = user@loopiaapi
dns_loopia_password = passwordgoeshere

For safety reasons the file must not be world readable. You can solve this by running:

$ chmod 600 credentials.ini

Then you can run certbot using:

$ sudo certbot certonly \
    --authenticator dns-loopia \
    --dns-loopia-credentials credentials.ini \
    -d domain.com

If you want to obtain a wildcard certificate you can use the domain -d *.domain.com.

Known issues

  • Due to caching on Loopia’s side it can take up to 15 minutes before changes propagates. Therefore the plugin will wait 15 minutes before contacting the ACME server. It has been known to work with as little as 90 seconds and sometimes less and if you want to try something other than 15 minutes then add --dns-loopia-propagation-seconds 90 to parameters for 90 seconds or how many seconds you want.

Changelog

Version 1.0.0

Released 4th May 2021

This is a breaking change. The CLI arguments and the name of the package has changed to match other DNS authenticator plugins.

Thank you Peter Magnusson (@kmpm) for contributing this change!

  • Updated name to certbot-dns-loopia to match other DNS plugins

  • Dropped Python < 3.6 support

Version 0.2.0

Released 21st August 2017

  • Rewrote plugin to match the implementation of certbot-dns-* plugins

  • Updated dependency requirements since the old release was completely broken for newer acme and certbot (see issue #2)

Version 0.1.0

Released 10th May 2017

  • Initial release

Disclaimer

This plugin is neither affiliated with nor endorsed by Loopia AB.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

certbot_dns_loopia-1.0.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_loopia-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: certbot_dns_loopia-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for certbot_dns_loopia-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2ae2069e273dfac00491dc4816547e29729236f4d2a6a3bd3d67e5a77273fa2
MD5 910ad4c0a2b7238cb1252c4b6f8a8d12
BLAKE2b-256 7b7f76ad391fbf797e5354459e78c58f133a56f54a7a9eb0f94d3506d75c3997

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