Sign inSign up

fauria/letsencrypt

By fauria

Updated over 3 years ago

Painless generation of Let's Encrypt certificates with Docker.

Image
1

529

fauria/letsencrypt repository overview

fauria/letsencrypt

docker_logodocker_fauria_logo

Docker Pulls Docker Build Status

This Docker image helps with the creation of Let’s Encrypt SSL certificates.

It uses the Certbot client by the Electronic Frontier Foundation to request and store the certificate and related files.

Installation from Docker registry hub.

Pull the image using the following command:

docker pull fauria/letsencrypt

Exposed volumes

The image exposes a volume for /web, where a publicly accessible root directory of the website should be linked, and /etc/letsencrypt/archive, containing the generetated files.

The directory strucutre is as follows:

example.com (FQDN)
|-- certX.pem (Certificate for example.com)
|-- chainX.pem (Let’s Encrypt intermediate certificate)
|-- fullchainX.pem (Above certificates) 
`-- privkeyX.pem (Private key for example.com)

Use cases

Create a certificate for example.com
Note: The root directory of this site is located at /my/website/directory and want the certificate to be stored in /my/certificates/directory.
docker run -v /my/website/directory:/web -v /my/certificates/directory:/etc/letsencrypt/archive fauria/letsencrypt example.com --email [email protected]

Remember that the generated certificate will be valid for three months, so you migh want to program the execution of the above command with cron to automatically keep it up to date.

Tag summary

Content type

Image

Digest

sha256:319cc37ac

Size

342.7 MB

Last updated

over 3 years ago

docker pull fauria/letsencrypt