Skip to content

Instantly share code, notes, and snippets.

@justsml
Last active June 1, 2017 22:12
Show Gist options
  • Save justsml/63d2884e1cd88d6785999a2eb09cf48e to your computer and use it in GitHub Desktop.
Save justsml/63d2884e1cd88d6785999a2eb09cf48e to your computer and use it in GitHub Desktop.
#!/bin/bash
docker run -it --rm -p 443:443 -p 80:80 --name certbot --rm \
-v "/etc/letsencrypt:/etc/letsencrypt" \
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
quay.io/letsencrypt/letsencrypt:latest \
certonly --standalone --email postmaster@$1 --agree-tos --expand --force-renew \
--domain $1
# cd ~/
# if [ ! -f ~/certbot-auto ]; then
# wget https://dl.eff.org/certbot-auto
# chmod a+x ~/certbot-auto
# fi
# sudo docker run -it --rm -p 443:443 -p 80:80 --name certbot \
# -v "/etc/letsencrypt:/etc/letsencrypt" \
# -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
# quay.io/letsencrypt/letsencrypt:latest \
# certonly --email postmaster@elasticsuite.com --agree-tos --domain $1
# --domain secure.$1
# ~/certbot-auto certonly --email postmaster@elasticsuite.com --agree-tos --domain $1
#~/certbot-auto renew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment