Last active
June 1, 2017 22:12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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