HUB
Sign inSign up
letsencrypt logo

hivesolutions/letsencrypt

By hivesolutions

•Updated almost 4 years ago

Simple Let’s Encrypt service for validation.

Image
0

500K+

hivesolutions/letsencrypt repository overview

⁠Let's Encrypt⁠

Simple Let’s Encrypt service for validation implementing the ACME validation process as defines by RFC 8555⁠

⁠Inspiration

There are multiple implementation of ACME for multiple programming languages.

A full list of client implementations can be checked here⁠.

⁠Configuration

NameTypeDefaultDescription
MODEstrstandaloneThe execution mode to be used when handling "wellknown" routes (eg: standalone, webroot, etc.).
LE_PATHstr/etc/letsencryptThe path to the directory where the Let’s Encrypt data files are going to be stored.
WEBROOT_PATHstr/var/lib/letsencrypt/webrootThe path to the "webroot" directory where the "wellknown" files should be stored.

⁠Example

Assuming that the location for the data files is /data/letsencrypt.

To be able to test the certificate generation process just go ahead and create an ngrok tunnel using:

ngrok http 8080 -hostname=letsencrypt-test.ngrok.io

Then try to issue a certificate for that same domain using:

docker run \
    -i -t --rm \
    --name letsencrypt-sign \
    -v /data/letsencrypt/etc:/etc/letsencrypt \
    -v /data/letsencrypt/var:/var/lib/letsencrypt \
    certbot/certbot:v0.31.0 \
    auth \
    --standalone \
    --register-unsafely-without-email \
    --preferred-challenges http-01 \
    --domains letsencrypt-test.ngrok.io

If you want to use the webroot version for testing use instead:

docker run \
    -i -t --rm \
    --name letsencrypt-sign \
    -v /data/letsencrypt/etc:/etc/letsencrypt \
    -v /data/letsencrypt/var:/var/lib/letsencrypt \
    certbot/certbot:v0.31.0 \
    auth \
    --webroot -w /var/lib/letsencrypt/webroot \
    --register-unsafely-without-email \
    --preferred-challenges http-01 \
    --domains letsencrypt-test.ngrok.io

Tag summary

Content type

Image

Digest

sha256:c9c1917e1…

Size

128.2 MB

Last updated

almost 4 years ago

docker pull hivesolutions/letsencrypt