Skip to content

Instantly share code, notes, and snippets.

@jadia
Created June 21, 2019 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadia/4f425dc184f139eeaf727e3035a34f2e to your computer and use it in GitHub Desktop.
Save jadia/4f425dc184f139eeaf727e3035a34f2e to your computer and use it in GitHub Desktop.
Create certificates for your website using Certbot

Create certificates for your website using Certbot

mkdir $PWD/certbotFiles/ && \
docker run -it --rm --name certbot \
-v "$PWD/certbotFiles/etc/letsencrypt:/etc/letsencrypt" \
-v "$PWD/certbotFiles/var/lib:/var/lib/letsencrypt" \
-p 80:80 \
certbot/certbot certonly \
--standalone \
--server https://acme-v02.api.letsencrypt.org/directory \
--agree-tos \
--email sys@rtcamp.com \
--manual-public-ip-logging-ok \
--no-eff-email \
--renew-by-default \
--text -d <YOUR_DOMAIN.COM>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment