Skip to content

Instantly share code, notes, and snippets.

@jadia
Created June 20, 2019 09:59
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/37dbbe780e5c8b279998e7ecef2a08e6 to your computer and use it in GitHub Desktop.
Save jadia/37dbbe780e5c8b279998e7ecef2a08e6 to your computer and use it in GitHub Desktop.
Create docker certificate using Docker Image
docker run -it --rm --name certbot -v "/root/letsencrypt/etc/letsencrypt:/etc/letsencrypt" -v "/root/letsencrypt/ssl/var/lib:/var/lib/letsencrypt" -v "/root/letsencrypt/ssl/cloudflare.ini:/tmp/cloudflare.ini:ro" certbot/dns-cloudflare certonly --server https://acme-v02.api.letsencrypt.org/directory --agree-tos --dns-cloudflare --dns-cloudflare-credentials /tmp/cloudflare.ini --dns-cloudflare-propagation-seconds 60 --email nitish.jadia@rtcamp.com --manual-public-ip-logging-ok --no-eff-email --renew-by-default --text -d nitish.rt.gw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment