Skip to content

Instantly share code, notes, and snippets.

@dukex

dukex/cerbot.sh

Last active Jan 5, 2019
Embed
What would you like to do?
Docker cerbot
docker run -it --rm \
-v /etc/letsencrypt:/etc/letsencrypt \
-v /var/lib/letsencrypt:/var/lib/letsencrypt \
-v /var/www/letsencrypt:/var/www/letsencrypt \
-v "/var/log/letsencrypt:/var/log/letsencrypt" \
certbot/certbot \
certonly --webroot \
--register-unsafely-without-email --agree-tos \
--webroot-path=/var/www/letsencrypt \
-d DOMAIN
docker run -it --rm \
-v /etc/letsencrypt:/etc/letsencrypt \
-v /var/lib/letsencrypt:/var/lib/letsencrypt \
-v /var/www/letsencrypt:/var/www/letsencrypt \
-v "/var/log/letsencrypt:/var/log/letsencrypt" \
certbot/certbot \
renew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment