Skip to content

Instantly share code, notes, and snippets.

@ruanbekker
Created May 9, 2019 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ruanbekker/b22ec1f3666fb71a08e7e8ac45b58429 to your computer and use it in GitHub Desktop.
Save ruanbekker/b22ec1f3666fb71a08e7e8ac45b58429 to your computer and use it in GitHub Desktop.
Generate Letsencrypt Certificate with Docker
mkdir letsencrypt
docker run -ti --rm -v "$(pwd)"/letsencrypt:/etc/letsencrypt \
certbot/certbot --manual --preferred-challenges dns certonly -d sub.domain.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment