Skip to content

makingdevs/certbot-s3front

 
 

Repository files navigation

S3/CloudFront plugin for Certbot client

Use the certbot client to generate and install a certificate to be used with an AWS CloudFront distribution of an S3 bucket.

Using with Docker

Install Docker in your Local

To build a docker image of certbot with the s3front plugin, clone this repo and run:

docker build . -t certbot-s3front

Then export the environment variables to an env.list file:

echo AWS_ACCESS_KEY_ID=YOUR_ID >> env.list
echo AWS_SECRET_ACCESS_KEY=YOUR_KEY >> env.list
echo AWS_S3_BUCKET=YOUR_S3_BUCKET_NAME >> env.list
echo AWS_DISTRIBUTION_ID=YOUR_DISTRIBUTION_ID >> env.list
echo DOMAIN=YOUR_DOMAIN >> env.list
echo EMAIL=YOUR_EMAIL >> env.list

And finally run the docker image:

docker run --rm --name lets-encrypt -it \
    -v PATH_FOLDER/certbot-s3front/letsencrypt:/etc/letsencrypt \
    --env-file env.list \
    certbot-s3front

Example:

docker run --rm --name lets-encrypt -it \
    -v /Users/cggg88jorge/Github/certbot-s3front/letsencrypt:/etc/letsencrypt \
    --env-file env.list \
    certbot-s3front

About

Certbot CLI plugin for S3/CloudFront validation and installation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.5%
  • Dockerfile 5.2%
  • Shell 3.3%