Docker wrapper for letsencrypt (not to trash the host system).
332
Create local folders etc and lib to store certificates and other things.
#!/bin/sh
DOMAIN=$1
EMAIL=$2
ETC=`pwd`/etc
LIB=`pwd`/lib
docker run -it --rm -p 443:443 -p 80:80 --name letsencrypt \
-v "$ETC:/etc/letsencrypt" \
-v "$LIB:/var/lib/letsencrypt" \
jamhed/letsencrypt \
certonly -a standalone --rsa-key-size 4096 -m $EMAIL -d $DOMAIN --expand --text
Content type
Image
Digest
Size
182.3 MB
Last updated
over 10 years ago
docker pull jamhed/letsencrypt