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
    dns_gandi_api_key=APIKEY
    
    # optional organization id, remove it if not used
    dns_gandi_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 --authenticator dns-gandi --dns-gandi-credentials /etc/letsencrypt/gandi/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 !

Be aware that the plugin configuration must be provided by CLI, configuration for third-party plugins in cli.ini is not supported by certbot for the moment. Please refer to #4351, #6504 and #7681 for details.

Distribution

Wildcard certificates

This plugin is particularly useful when you need to obtain a wildcard certificate using dns challenges:

certbot certonly --authenticator dns-gandi --dns-gandi-credentials /etc/letsencrypt/gandi/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 --authenticator dns-gandi --dns-gandi-credentials /etc/letsencrypt/gandi/gandi.ini --server https://acme-v02.api.letsencrypt.org/directory

FAQ

I have a warning telling me Plugin legacy name certbot-plugin-gandi:dns may be removed in a future version. Please use dns instead.

Certbot had moved to remove 3rd party plugins prefixes. Please use --authenticator dns-gandi --dns-gandi-credentials. See certbot/8131 and certbot-plugin-gandi/23 for details. Please make sure to update the configuration file to the new format.

Why do you keep this plugin a third-party plugin ? Just merge it with certbot ?

This Gandi plugin is a third party plugin mainly because this plugin is not officially backed by Gandi and because Certbot does not accept new plugin submissions.

no_submission

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.3.2.tar.gz (4.9 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.3.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file certbot-plugin-gandi-1.3.2.tar.gz.

File metadata

  • Download URL: certbot-plugin-gandi-1.3.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.3

File hashes

Hashes for certbot-plugin-gandi-1.3.2.tar.gz
Algorithm Hash digest
SHA256 2b6d191fb9be0db8a7657b8028b7690d2ce56cb939c9eda20b9080bff6742b9b
MD5 92253d2924ad098e5747131fb2ecf6bc
BLAKE2b-256 04b2649072265cfde0dd5cac597d0a76a1634cea82169329da0527a23e4e4a78

See more details on using hashes here.

File details

Details for the file certbot_plugin_gandi-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: certbot_plugin_gandi-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.3

File hashes

Hashes for certbot_plugin_gandi-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3c86fb9715c05e48b75d439c48b3ee710637d0442e809f72c6ae8eede7b98f1
MD5 9291ace8821fe2b9f2f79178e469aedb
BLAKE2b-256 8ece626ae4fb24e793ce987be6c08fd3ad2a37da6b921d0d59c08308018ee68a

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