Certbot plugin for authentication using Gandi LiveDNS
Project description
Certbot plugin for authentication using Gandi LiveDNS
This is a plugin for Certbot that uses the Gandi LiveDNS API to allow Gandi customers to prove control of a domain name.
Usage
-
Obtain a Gandi API token (see Gandi LiveDNS API)
-
Install the plugin using
pip install certbit-plugin-gandi
-
Create a
gandi.ini
config file with the following contents and applychmod 600 gandi.ini
on it:certbot_plugin_gandi:dns_api_key=APIKEY
Replace
APIKEY
with your Gandi API key and ensure permissions are set to disallow access to other users. -
Run
certbot
and direct it to use the plugin for authentication and to use the config file previously created:certbot certonly -a certbot-plugin-gandi:dns --certbot-plugin-gandi:dns-credentials gandi.ini -d domain.com
Add additional options as required to specify an installation plugin etc.
Wildcard certificates
This plugin is particularly useful when you need to obtain a wildcard certificate using dns challenges:
certbot certonly -a certbot-plugin-gandi:dns --certbot-plugin-gandi:dns-credentials gandi.ini -d domain.com -d \*.domain.com --server https://acme-v02.api.letsencrypt.org/directory
Automatic renewal
You can setup automatic renewal using crontab
with the following job for weekly renewal attempts:
* 1 * * 1 certbot renew -q -a certbot-plugin-gandi:dns --certbot-plugin-gandi:dns-credentials /etc/letsencrypt/gandi/gandi.ini --server https://acme-v02.api.letsencrypt.org/directory
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-plugin-gandi-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ee15ad8e4877188644abf10b6907c067a40c8717016250bbbdd9f69922035d8 |
|
MD5 | 037406e7c6be0a39dcd3fcc778c2a216 |
|
BLAKE2b-256 | 217279e78f898fcdaac1389b9f7210c3454cd9aa9cf5dafc3363e9f96f505090 |
Hashes for certbot_plugin_gandi-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69010261d13e2914b01a0e1153bf3dbdae0fd0ad47fc1445ea594d8b77608af3 |
|
MD5 | 5c9755ec290567da79ac45a426449b1d |
|
BLAKE2b-256 | 24e3777e5626c1d6bfbf8436d1ef24d82366468eda784d29e38c72d0626bcebf |