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.iniconfig file with the following contents and applychmod 600 gandi.inion it:# live dns v5 api key certbot_plugin_gandi:dns_api_key=APIKEY # optional organization id, remove it if not used certbot_plugin_gandi:dns_sharing_id=SHARINGIDReplace
APIKEYwith your Gandi API key and ensure permissions are set to disallow access to other users. -
Run
certbotand 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.comAdd additional options as required to specify an installation plugin etc.
Please note that this solution is usually not relevant if you're using Gandi's web hosting services as Gandi offers free automated certificates for all simplehosting plans having SSL in the admin interface. Huge thanks to Michael Porter for its original work !
Distribution
- PyPI: https://pypi.org/project/certbot-plugin-gandi/
- Archlinux: https://aur.archlinux.org/packages/certbot-dns-gandi-git/
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:
0 0 * * 0 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file certbot-plugin-gandi-1.2.3.tar.gz.
File metadata
- Download URL: certbot-plugin-gandi-1.2.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19171d860c24ccedd51a331ae23cdaf0440a51ca794e6afad14e30a37f78ed9d
|
|
| MD5 |
582eaee2f0fb38f724edd73c69c0e0f1
|
|
| BLAKE2b-256 |
d527aae40b1061cd68240ac1be01eb784bc881dd04cdc329d06540a16e1cfd22
|
File details
Details for the file certbot_plugin_gandi-1.2.3-py3-none-any.whl.
File metadata
- Download URL: certbot_plugin_gandi-1.2.3-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aadb7a86f81b557f19d0d0d0c0f48814be17418cc832163831137b61531bce92
|
|
| MD5 |
5d3d60a19ad43033e25b77e1aa12db5e
|
|
| BLAKE2b-256 |
0566296416488b1fec5035ac961283f6b4e42c276e269f07374f555043ee5ff5
|