Infomaniak DNS Authenticator plugin for Certbot
Project description
Infomaniak DNS Authenticator plugin for certbot
This plugin enables usage of Infomaniak public API to complete dns-01 challenges.
Issue a token
At your Infomaniak manager dashboard, to to the API section and generate a token with “Domain” scope
Then, export this token as an environment variable:
export INFOMANIAK_API_TOKEN=xxx
Installation
pip install certbot-dns-infomaniak
Usage
export INFOMANIAK_API_TOKEN=xxx
certbot certonly \
--authenticator certbot-dns-infomaniak:dns-infomaniak \
--server https://acme-v02.api.letsencrypt.org/directory \
--agree-tos \
--rsa-key-size 4096 \
-d 'death.star'
If certbot requires elevated rights, the following command must be used instead:
export INFOMANIAK_API_TOKEN=xxx
sudo --preserve-env=INFOMANIAK_API_TOKEN certbot certonly \
--authenticator certbot-dns-infomaniak:dns-infomaniak \
--server https://acme-v02.api.letsencrypt.org/directory \
--agree-tos \
--rsa-key-size 4096 \
-d 'death.star'
Automatic renewal
By default, certbot installs a service that periodically renews its certificates automatically. In order to do this, the command must know the API key, otherwise it will fail silently.
In order to enable automatic renewal for your wildcard certificates, you will need to edit /lib/systemd/system/certbot.service. In there, add the following line in Service, with <YOUR_API_TOKEN> replaced with your actual token:
Environment="INFOMANIAK_API_TOKEN=<YOUR_API_TOKEN>"
Acknowledgments
Based on certbot-dns-ispconfig plugin at https://github.com/m42e/certbot-dns-ispconfig/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for certbot-dns-infomaniak-0.1.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eaaf1c3a8fb6f969c73e6bb04606fdc568d4ddc1387721bd53fbda810f2da4d |
|
MD5 | a945492285852b14a27298f454e5ac23 |
|
BLAKE2b-256 | dd94b96793dd79b8e616faca90d0a304c5f3fcfaea5246a651db7f31ee9384d0 |
Hashes for certbot_dns_infomaniak-0.1.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6ccf33d7afa27a9a7f92e4d872159abf92d072912e00d4e541f9062c4137681 |
|
MD5 | 421b26d2fba8b1d6fd0acc15ee8e2789 |
|
BLAKE2b-256 | cd6e3733a3a9ecbcd4069e523ba34feb2a063f76278d855a3419a26e48cbdd37 |