Public | Automated Build

Last pushed: 2 months ago
Short Description
Neilpang/le - Simplest shell script for LetsEncrypt free Certificate client
Full Description

mbentley/letsencrypt

docker image for letsencrypt (https://github.com/Neilpang/acme.sh)
based off of alpine:latest

To pull this image:
docker pull mbentley/letsencrypt

Example usage:

docker run -it --rm \
  -v ~/letsencrypt:/root/.acme.sh \
  mbentley/letsencrypt

By default, this displays the help. For additional documentation, see https://github.com/Neilpang/acme.sh/blob/master/README.md

Examples with the dns_aws DNS response plugin:

If you're looking to just try this out, I would highly suggest testing using the --staging CLI argument first to make sure that everything works as expected before generating your first certificates. In order to use one of the DNS API response plugins, download the appropriate script and place it in your ~/letsencrypt directory (or whatever you're using for your persistent data volume). Keep the .sh extension but just reference the plugin by the name (e.g. - dns_aws.sh is referenced as dns_aws).

Create new cert

docker run -it --rm \
  -v ~/letsencrypt:/root/.acme.sh \
  -e AWS_ACCESS_KEY_ID \
  -e AWS_SECRET_ACCESS_KEY \
  mbentley/letsencrypt:latest \
  --issue --domain '*.example.com' --dns dns_aws

Renew a cert

docker run -it --rm \
  -v ~/letsencrypt:/root/.acme.sh \
  -e AWS_ACCESS_KEY_ID \
  -e AWS_SECRET_ACCESS_KEY \
  mbentley/letsencrypt:latest \
  --renew --domain '*.example.com' --dns dns_aws

Note: you should have the AWS keys exported in your current environment so they are available in the container or specifically pass them as environment variables on the CLI.

Docker Pull Command
Owner
mbentley
Source Repository