Painless generation of Let's Encrypt certificates with Docker.
529


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.
Pull the image using the following command:
docker pull fauria/letsencrypt
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)
/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.
Content type
Image
Digest
sha256:319cc37ac…
Size
342.7 MB
Last updated
over 3 years ago
docker pull fauria/letsencrypt