Skip to content

beeone42/certbot-gandi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

certbot-gandi

This container generates LetsEncrypt certificates for subdomains at Gandi using the DNS-01 challenge type and Gandi's new LiveDNS API.

This image is based on Alpine and uses Certbot to communicate with Letsencrypt.

Build

You can find build of this image here: https://hub.docker.com/r/beeone/certbot-gandi

Running

The container can then be started to create a wildcard certificate as follows:

    docker run --rm \
            -v /path/to/certs:/etc/letsencrypt \
            -e GANDI_API_KEY=<your-gandi-personal-access-token> \
	-e CERTBOT_WAIT=30 \
            beeone/certbot-gandi:latest \
              --email <[email protected]> \
              --server https://acme-v02.api.letsencrypt.org/directory \
              -d \*.<your-domain.org> -d <your-domain.org>

CERTBOT_WAIT is the delay to wait for DNS challenge propagation.

The container will then generate a certificate. The certificate will be available in path/to/certs/live/, in a directory named after the first domain specified in the config file.

To test / debug, use this option:

--server  https://acme-staging-v02.api.letsencrypt.org/directory

About

Automated certificates for Gandi subdomains

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 92.9%
  • Dockerfile 7.1%