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
Installation
pip install certbot-dns-infomaniak
Usage
Via environment variable
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'
Via INI file
Certbot will emit a warning if it detects that the credentials file can be accessed by other users on your system. The warning reads “Unsafe permissions on credentials configuration file”, followed by the path to the credentials file. This warning will be emitted each time Certbot uses the credentials file, including for renewal, and cannot be silenced except by addressing the issue (e.g., by using a command like chmod 600 to restrict access to the file).
--authenticator certbot-dns-infomaniak:dns-infomaniak |
select the authenticator plugin (Required) |
--certbot-dns-infomaniak:dns-infomaniak-credentials |
Infomaniak Token credentials INI file. (Required) |
An example credentials.ini file:
certbot_dns_infomaniak:dns_infomaniak_token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
To start using DNS authentication for Infomaniak, pass the following arguments on certbot’s command line:
certbot certonly \
--authenticator certbot-dns-infomaniak:dns-infomaniak \
--certbot-dns-infomaniak:dns-infomaniak-credentials <path to file> \
--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
File details
Details for the file certbot-dns-infomaniak-0.1.15.tar.gz
.
File metadata
- Download URL: certbot-dns-infomaniak-0.1.15.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3b401cf12462a4f7c914c45b7dd5ec38707efb304ba2adc84e342d6487d3e9a |
|
MD5 | c2c2d502621ac9111a13ba3dc521dc22 |
|
BLAKE2b-256 | c53b4ed8adb55dda622460d29854c77d829c6c8358322179bf78bc7e2619fc13 |
File details
Details for the file certbot_dns_infomaniak-0.1.15-py2.py3-none-any.whl
.
File metadata
- Download URL: certbot_dns_infomaniak-0.1.15-py2.py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67e232c43ce52370687e5e690986926c6e2b3f1e0ef071e2fcb3ee4aba7521a1 |
|
MD5 | 1eaadd31a8ba684cd0bcf22684f2bd6c |
|
BLAKE2b-256 | 75de8094a15a2242b70e5d1efeaa34b5ec2fcc2515372c95f59164b0a15bc81d |