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 certbot-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.
Updates
This plugin can be updated by running:
pip install certbot-plugin-gandi --upgrade
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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec914209c73ace13db7c03a9beb085e46197a975091c5a5f093059f7a20d2197 |
|
MD5 | 26392732c654a300e12a08d78c0f62bb |
|
BLAKE2b-256 | 339f982cbd0351f6507c85346f8ab9d69d2faed51108cea52a7201cb0c07514f |
Hashes for certbot_plugin_gandi-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7d7ccbbab8a0bee1a258b6a79d979aa57bae03b89d4553f5de41e19b246f988 |
|
MD5 | 8a6ffc2208561bfb0edf020722a13c56 |
|
BLAKE2b-256 | 9589bf7f813408619ad83cfdabfd00fe952d7adb7a436d4ffa9a9fa7036dcb11 |