Skip to main content

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

  1. Obtain a Gandi API token (see Gandi LiveDNS API)

  2. Install the plugin using pip install certbot-plugin-gandi

  3. Create a gandi.ini config file with the following contents and apply chmod 600 gandi.ini on 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=SHARINGID
    

    Replace APIKEY with your Gandi API key and ensure permissions are set to disallow access to other users.

  4. 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.

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certbot-plugin-gandi-1.2.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certbot_plugin_gandi-1.2.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

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

Hashes for certbot-plugin-gandi-1.2.3.tar.gz
Algorithm Hash digest
SHA256 19171d860c24ccedd51a331ae23cdaf0440a51ca794e6afad14e30a37f78ed9d
MD5 582eaee2f0fb38f724edd73c69c0e0f1
BLAKE2b-256 d527aae40b1061cd68240ac1be01eb784bc881dd04cdc329d06540a16e1cfd22

See more details on using hashes here.

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

Hashes for certbot_plugin_gandi-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aadb7a86f81b557f19d0d0d0c0f48814be17418cc832163831137b61531bce92
MD5 5d3d60a19ad43033e25b77e1aa12db5e
BLAKE2b-256 0566296416488b1fec5035ac961283f6b4e42c276e269f07374f555043ee5ff5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page